Example #1
0
 /**
  * Allow read access to "css" as a dynamic property.
  * Call inherited method for other properties.
  *
  * This allows to get/set css style properties using array syntax.
  *
  * @see FluentDOM::__get()
  * @param string $name
  * @param mixed $value
  */
 public function __get($name)
 {
     switch ($name) {
         case 'css':
             return new FluentDOMCss($this, $this->attr('style'));
     }
     return parent::__get($name);
 }