/** * Build a variable. * * @param string $name Name. * @param bool $local Local. * @param \Hoa\Praspel\Model\Clause $clause Clause. * @return void * @throws \Hoa\Praspel\Exception\Model */ public function __construct($name, $local, Praspel\Model\Clause $clause = null) { if ('this' !== $name) { throw new Praspel\Exception\Model('Variable %s is not an implicit one.', 0, $name); } parent::__construct($name, $local, $clause); $this->in = realdom()->object(); return; }
/** * Build a variable. * * @param string $name Name. * @param bool $local Local. * @param \Hoa\Praspel\Model\Clause $clause Clause. * @return void * @throws \Hoa\Praspel\Exception\Model */ public function __construct($name, $local, Praspel\Model\Clause $clause = null) { parent::__construct($name, $local, $clause); $this->determineType(); return; }