You are here

class Twig_TemplatePropertyObjectAndArrayAccess in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_TemplatePropertyObjectAndArrayAccess

Hierarchy

Expanded class hierarchy of Twig_TemplatePropertyObjectAndArrayAccess

File

vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 561

View source
class Twig_TemplatePropertyObjectAndArrayAccess extends Twig_TemplatePropertyObject implements ArrayAccess {
  private $data = array();
  public function offsetExists($offset) {
    return array_key_exists($offset, $this->data);
  }
  public function offsetGet($offset) {
    return $this
      ->offsetExists($offset) ? $this->data[$offset] : 'n/a';
  }
  public function offsetSet($offset, $value) {
  }
  public function offsetUnset($offset) {
  }

}

Members