src/Model/Method.php
public function getMethodName()
    {
        if (empty($this->methodName)) {
            $methodName = $this->getCleanName();
            if (!$this->isUnique()) {
                if (is_string($this->getParameterType())) {
                    $methodName .= ucfirst($this->getParameterType());
                } else {
                    $methodName .= '_' . md5(var_export($this->getParameterType(), true));
                }
            }
            $context = $this->getOwner()->getPackagedName();
            $methodName = $this->replaceReservedMethod($methodName, $context);
            $methodName = self::replacePhpReservedKeyword($methodName, $context);
            $this->methodName = self::uniqueName($methodName, $this->getOwner()->getPackagedName());
        }
        return $this->methodName;
    }
public function getMethodName()
    {
        if (empty($this->methodName)) {
            $methodName = $this->getCleanName();
            if (!$this->isUnique()) {
                if (is_string($this->getParameterType())) {
                    $methodName .= ucfirst($this->getParameterType());
                } else {
                    $methodName .= '_' . md5(var_export($this->getParameterType(), true));
                }
            }
            $context = $this->getOwner()->getPackagedName();
            $methodName = $this->replaceReservedMethod($methodName, $context);
            $methodName = self::replacePhpReservedKeyword($methodName, $context);
            $this->methodName = self::uniqueName($methodName, $this->getOwner()->getPackagedName());
        }
        return $this->methodName;
    }
public function getMethodName ( ) { if ( empty ( $ this -> methodName ) ) { $ methodName = $ this -> getCleanName ( ) ; if ( ! $ this -> isUnique ( ) ) { if ( is_string ( $ this -> getParameterType ( ) ) ) { $ methodName .= ucfirst ( $ this -> getParameterType ( ) ) ; } else { $ methodName .= '_' . md5 ( var_export ( $ this -> getParameterType ( ) , true ) ) ; } } $ context = $ this -> getOwner ( ) -> getPackagedName ( ) ; $ methodName = $ this -> replaceReservedMethod ( $ methodName , $ context ) ; $ methodName = self :: replacePhpReservedKeyword ( $ methodName , $ context ) ; $ this -> methodName = self :: uniqueName ( $ methodName , $ this -> getOwner ( ) -> getPackagedName ( ) ) ; } return $ this -> methodName ; }
Returns the name of the method that is used to call the operation
It takes care of the fact that the method might not be the only one named as it is.
@uses Method::getCleanName()
@uses AbstractModel::replacePhpReservedKeyword()
@uses AbstractModel::getOwner()
@uses AbstractModel::getPackagedName()
@uses AbstractModel::uniqueName()
@uses Method::getOwner()
@uses Method::getParameterType()
@uses Method::isUnique()
@return string
Returns the name of the method that is used to call the operation It takes care of the fact that the method might not be the only one named as it is .