src/main/php/ClassProxyMethodHandler.php
public function invocations(string $method): Invocations
    {
        if (empty($method)) {
            throw new \InvalidArgumentException(
                    'Please provide a method name to retrieve invocations for.'
            );
        }

        if (!isset($this->_allowedMethods[$method])) {
            throw new \InvalidArgumentException(
                    $this->canNot('retrieve invocations for', $method)
            );
        }

        if (!isset($this->invocations[$method])) {
            $this->invocations[$method] = new Invocations(
                    $this->completeNameOf($method),
                    $this->_methodParams[$method]
            );
        }

        return $this->invocations[$method];
    }
public function invocations(string $method): Invocations
    {
        if (empty($method)) {
            throw new \InvalidArgumentException(
                    'Please provide a method name to retrieve invocations for.'
            );
        }

        if (!isset($this->_allowedMethods[$method])) {
            throw new \InvalidArgumentException(
                    $this->canNot('retrieve invocations for', $method)
            );
        }

        if (!isset($this->invocations[$method])) {
            $this->invocations[$method] = new Invocations(
                    $this->completeNameOf($method),
                    $this->_methodParams[$method]
            );
        }

        return $this->invocations[$method];
    }
public function invocations ( string $ method ) : Invocations { if ( empty ( $ method ) ) { throw new \ InvalidArgumentException ( 'Please provide a method name to retrieve invocations for.' ) ; } if ( ! isset ( $ this -> _allowedMethods [ $ method ] ) ) { throw new \ InvalidArgumentException ( $ this -> canNot ( 'retrieve invocations for' , $ method ) ) ; } if ( ! isset ( $ this -> invocations [ $ method ] ) ) { $ this -> invocations [ $ method ] = new Invocations ( $ this -> completeNameOf ( $ method ) , $ this -> _methodParams [ $ method ] ) ; } return $ this -> invocations [ $ method ] ; }
returns recorded invocations for given method

@param   string  $method
@return  Invocations
@throws  \InvalidArgumentException  in case the method does not exist or is not applicable
@since   3.1.0
returns recorded invocations for given method