__construct() публичный Метод

Creates a variable.
public __construct ( string $name, mixed $defaultValue = null, integer $type = CompiledExpression::UNKNOWN, integer | string $branch = self::BRANCH_ROOT )
$name string
$defaultValue mixed
$type integer
$branch integer | string
Пример #1
0
 /**
  * @param string $name
  * @param null $defaultValue
  * @param int $type
  * @param bool|false $referenced
  */
 public function __construct($name, $defaultValue = null, $type = CompiledExpression::UNKNOWN, $referenced = false)
 {
     parent::__construct($name, $defaultValue, $type);
     $this->referenced = $referenced;
 }
Пример #2
0
 /**
  * @param string $name
  * @param mixed $defaultValue
  * @param int $type
  */
 public function __construct($name, $defaultValue = null, $type = CompiledExpression::UNKNOWN)
 {
     parent::__construct($name, $defaultValue, $type);
 }