Zend\Code\Generator\ParameterGenerator::__construct PHP Method

__construct() public method

public __construct ( string $name = null, string $type = null, mixed $defaultValue = null, integer $position = null, boolean $passByReference = false )
$name string
$type string
$defaultValue mixed
$position integer
$passByReference boolean
    public function __construct($name = null, $type = null, $defaultValue = null, $position = null, $passByReference = false)
    {
        if (null !== $name) {
            $this->setName($name);
        }
        if (null !== $type) {
            $this->setType($type);
        }
        if (null !== $defaultValue) {
            $this->setDefaultValue($defaultValue);
        }
        if (null !== $position) {
            $this->setPosition($position);
        }
        if (false !== $passByReference) {
            $this->setPassedByReference(true);
        }
    }