Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __get($property)
 {
     switch ($property) {
         case 'text':
             return $this->{$property};
     }
     return parent::__get($property);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function __get($property)
 {
     switch ($property) {
         case 'code':
         case 'statement':
             return $this->{$property};
     }
     return parent::__get($property);
 }
Exemplo n.º 3
0
 /**
  * Construct internal node.
  */
 public function __construct()
 {
     parent::__construct();
     $this->root = $this;
 }