src/Plugin/Pointcut.php
protected static function _stubbedMethod($lsb, $self, $class, $name, $args)
    {
        if (is_object($self)) {
            $list = $lsb === $class ? [$self, $lsb] : [$self, $lsb, $class];
        } else {
            $list = $lsb === $class ? [$lsb] : [$lsb, $class];
            $name = '::' . $name;
        }

        $stub = static::$_classes['stub'];

        $method = $stub::find($list, $name, $args);
        Calls::log($list, compact('name', 'args', 'method'));

        return $method ?: false;
    }
protected static function _stubbedMethod($lsb, $self, $class, $name, $args)
    {
        if (is_object($self)) {
            $list = $lsb === $class ? [$self, $lsb] : [$self, $lsb, $class];
        } else {
            $list = $lsb === $class ? [$lsb] : [$lsb, $class];
            $name = '::' . $name;
        }

        $stub = static::$_classes['stub'];

        $method = $stub::find($list, $name, $args);
        Calls::log($list, compact('name', 'args', 'method'));

        return $method ?: false;
    }
protected static function _stubbedMethod ( $ lsb , $ self , $ class , $ name , $ args ) { if ( is_object ( $ self ) ) { $ list = $ lsb === $ class ? [ $ self , $ lsb ] : [ $ self , $ lsb , $ class ] ; } else { $ list = $ lsb === $ class ? [ $ lsb ] : [ $ lsb , $ class ] ; $ name = '::' . $ name ; } $ stub = static :: $ _classes [ 'stub' ] ; $ method = $ stub :: find ( $ list , $ name , $ args ) ; Calls :: log ( $ list , compact ( 'name' , 'args' , 'method' ) ) ; return $ method ? : false ; }
Checks if the called method has been stubbed.

@param  string $lsb         Late state binding class name.
@param  object|string $self The object instance or a fully-namespaces class name.
@param  string $class       The class name.
@param  string $name        The method name.
@param  string $args        The passed arguments.
@return boolean             Returns `true` if the method has been stubbed.
Checks if the called method has been stubbed .