/** * Class constructor. * * @param string $name parameter name * @param string $description parameter description * @param boolean $isOptional (optional) if the parameter is optional, false by default * @param string $alias (optional) parameter alias */ public function __construct($name, $description, $isOptional = false, $alias = null) { parent::__construct($name, $description, $isOptional, $alias); $this->_dataType = Streamwide_Introspection_Method_Parameter_Abstract::T_INTEGER; }
/** * Helper method. Adds a return value to a method. * * @param Streamwide_Introspection_Method $method Method object. * @param Streamwide_Introspection_Method_Parameter_Abstract $returnValue Return value object. * @return void */ protected function _setMethodReturnValue(Streamwide_Introspection_Method $method, Streamwide_Introspection_Method_Parameter_Abstract $returnValue) { if (false === $returnValue->isMethodReturnValue()) { return null; } $method->addChild($returnValue); }