src/Common/Internal/Validate.php
public static function methodExists($objectInstance, $method, $name)
    {
        self::isString($method, 'method');
        self::notNull($objectInstance, 'objectInstance');
        self::isObject($objectInstance, 'objectInstance');

        if (method_exists($objectInstance, $method)) {
            return true;
        } else {
            throw new \InvalidArgumentException(
                sprintf(
                    Resources::ERROR_METHOD_NOT_FOUND,
                    $method,
                    $name
                )
            );
        }
    }
public static function methodExists($objectInstance, $method, $name)
    {
        self::isString($method, 'method');
        self::notNull($objectInstance, 'objectInstance');
        self::isObject($objectInstance, 'objectInstance');

        if (method_exists($objectInstance, $method)) {
            return true;
        } else {
            throw new \InvalidArgumentException(
                sprintf(
                    Resources::ERROR_METHOD_NOT_FOUND,
                    $method,
                    $name
                )
            );
        }
    }
public static function methodExists ( $ objectInstance , $ method , $ name ) { self :: isString ( $ method , 'method' ) ; self :: notNull ( $ objectInstance , 'objectInstance' ) ; self :: isObject ( $ objectInstance , 'objectInstance' ) ; if ( method_exists ( $ objectInstance , $ method ) ) { return true ; } else { throw new \ InvalidArgumentException ( sprintf ( Resources :: ERROR_METHOD_NOT_FOUND , $ method , $ name ) ) ; } }
Validate if method exists in object.

@param object $objectInstance An object that requires method existing
validation
@param string $method         Method name
@param string $name           The parameter name

@return bool
Validate if method exists in object .