コード例 #1
0
ファイル: Implicit.php プロジェクト: Grummfy/Central
 /**
  * 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;
 }
コード例 #2
0
ファイル: Borrowing.php プロジェクト: Grummfy/Central
 /**
  * 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;
 }