Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param string $name
  * @param string $value
  */
 public function __construct($name, $value, $type = 'string')
 {
     $this->name = $name;
     $this->value = $value;
     $this->type = $type;
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * Constructor.
  *
  * @param string  $name
  * @param string  $visibility
  * @param string  $type
  * @param boolean $static
  */
 public function __construct($name, $visibility = self::IS_PUBLIC, $type = 'mixed', $static = false)
 {
     $this->setVisibility($visibility);
     $this->setStatic($static);
     $this->name = $name;
     $this->type = $type;
     parent::__construct();
 }
Esempio n. 3
0
 /**
  * Constructor.
  *
  * @param string $name
  * @param string $visibility
  * @param string $type
  * @param bool $static
  */
 public function __construct($name, $visibility = self::IS_PUBLIC, $type = self::T_VOID, $static = false)
 {
     $this->name = $name;
     $this->type = $type;
     $this->visibility = $visibility;
     $this->arguments = [];
     $this->abstract = false;
     $this->setStatic($static);
     parent::__construct();
 }