name = $reflector->getName(); $this->typeHint = $reflector->getType(); $this->isOptional = $reflector->getDefault() !== null; $this->defaultValue = $reflector->getDefault(); // TODO what about null value? $this->isPassedByReference = $reflector->isByRef(); } }