예제 #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();
 }
예제 #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();
 }
예제 #3
0
파일: Method.php 프로젝트: lucidphp/writer
 /**
  * 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();
 }