Ejemplo n.º 1
0
 public function offsetGet($attribute)
 {
     if ($attribute == 'name' || $attribute == 'value') {
         return $this->pop_image[$attribute];
     }
     return parent::offsetGet($attribute);
 }
Ejemplo n.º 2
0
 /**
  * Returns the value of a property,
  *
  * The value is gotten from the attribute corresponding to the property.
  *
  * @param string $property
  * @param mixed|null $default
  *
  * @return mixed
  */
 public function offsetGet($property, $default = null)
 {
     return $this->element->offsetGet(self::serialize_property($property), $default);
 }