class Twig_TemplateArrayAccessObject

Hierarchy

Expanded class hierarchy of Twig_TemplateArrayAccessObject

File

drupal/core/vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 251

View source
class Twig_TemplateArrayAccessObject implements ArrayAccess {
  protected $protected = 'protected';
  public $attributes = array(
    'defined' => 'defined',
    'zero' => 0,
    'null' => null,
    '1' => 1,
  );
  public function offsetExists($name) {
    return array_key_exists($name, $this->attributes);
  }
  public function offsetGet($name) {
    return array_key_exists($name, $this->attributes) ? $this->attributes[$name] : null;
  }
  public function offsetSet($name, $value) {
  }
  public function offsetUnset($name) {
  }

}

Members