src/Model/Service.php
public function addMethod($methodName, $methodParameterType, $methodReturnType, $methodIsUnique = true)
    {
        $method = new Method($this->getGenerator(), $methodName, $methodParameterType, $methodReturnType, $this, $methodIsUnique);
        $this->methods->add($method);
        return $method;
    }
public function addMethod($methodName, $methodParameterType, $methodReturnType, $methodIsUnique = true)
    {
        $method = new Method($this->getGenerator(), $methodName, $methodParameterType, $methodReturnType, $this, $methodIsUnique);
        $this->methods->add($method);
        return $method;
    }
public function addMethod ( $ methodName , $ methodParameterType , $ methodReturnType , $ methodIsUnique = true ) { $ method = new Method ( $ this -> getGenerator ( ) , $ methodName , $ methodParameterType , $ methodReturnType , $ this , $ methodIsUnique ) ; $ this -> methods -> add ( $ method ) ; return $ method ; }
Adds a method to the service
@uses Method::setUnique()
@param string $methodName original method name
@param string|array $methodParameterType original parameter type/name
@param string|array $methodReturnType original return type/name
@param bool $methodIsUnique original isUnique value
@return Method
Adds a method to the service