/** * 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(); }
/** * 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(); }
/** * 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(); }