Example #1
0
 /**
  *
  */
 public function __construct()
 {
     $this->emptyParserValue = new Parsed();
     $this->events = new Events(__CLASS__);
     $this->renderer = new Renderer($this);
     parent::__construct();
 }
Example #2
0
 /**
  * @param Utilities\Scripts $scripts
  * @param Renderer $renderer
  * @param ExpressionInstantiator $expressionInstantiator;
  */
 public function __construct(Utilities\Scripts $scripts = null, $renderer = null, $expressionInstantiator = null)
 {
     if ($this->scripts === null) {
         if ($scripts !== null) {
             $this->scripts = $scripts;
         } else {
             $this->scripts = new Utilities\Scripts();
         }
     }
     if ($this->renderer === null) {
         if ($renderer !== null) {
             $this->renderer = $renderer;
         } else {
             $this->renderer = new Renderer($this);
         }
     }
     if ($this->expressionInstantiator === null) {
         if ($expressionInstantiator !== null) {
             $this->expressionInstantiator = $expressionInstantiator;
         } else {
             $this->expressionInstantiator = new ExpressionInstantiator($this);
         }
     }
     $this->emptyParserValue = new Parsed();
     $this->variableContextStack = new Utilities\Stack();
     if (empty($this->events)) {
         $this->events = new Events();
     }
     parent::__construct();
 }
Example #3
0
    /**
     * Constructor.
     *
     * @param Definition $parent The Definition instance to decorate.
     */
    public function __construct($parent)
    {
        parent::__construct();

        $this->parent = $parent;
        $this->changes = array();
    }
 public function __construct($data = null)
 {
     $this->in = self::IN_GUESS;
     parent::__construct($data);
 }