class Twig_TemplatePropertyObjectAndArrayAccess in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_TemplatePropertyObjectAndArrayAccess
Hierarchy
- class \Twig_TemplatePropertyObject
- class \Twig_TemplatePropertyObjectAndArrayAccess implements \ArrayAccess
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_TemplatePropertyObject:: |
public | property | ||
Twig_TemplatePropertyObject:: |
public | property | ||
Twig_TemplatePropertyObject:: |
public | property | ||
Twig_TemplatePropertyObject:: |
protected | property | ||
Twig_TemplatePropertyObject:: |
public | property | ||
Twig_TemplatePropertyObjectAndArrayAccess:: |
private | property | ||
Twig_TemplatePropertyObjectAndArrayAccess:: |
public | function | ||
Twig_TemplatePropertyObjectAndArrayAccess:: |
public | function | ||
Twig_TemplatePropertyObjectAndArrayAccess:: |
public | function | ||
Twig_TemplatePropertyObjectAndArrayAccess:: |
public | function |