src/API/Implementation/ApiAbstract.php
private function assertMethodExists(string $method): void
    {
        if (!method_exists($this, $method)) {
            throw new MethodDoesNotExistException(
                sprintf("Specified method \"%s\" does not exist", $method)
            );
        }
    }
private function assertMethodExists(string $method): void
    {
        if (!method_exists($this, $method)) {
            throw new MethodDoesNotExistException(
                sprintf("Specified method \"%s\" does not exist", $method)
            );
        }
    }
private function assertMethodExists ( string $ method ) : void { if ( ! method_exists ( $ this , $ method ) ) { throw new MethodDoesNotExistException ( sprintf ( "Specified method \"%s\" does not exist" , $ method ) ) ; } }
Throws exception if method does not exist

@param string $method

@throws MethodDoesNotExistException

@return void
Throws exception if method does not exist