src/Jobs/EsiBase.php
public function validateCall(): void
    {

        if (! in_array($this->method, ['get', 'post', 'put', 'patch', 'delete']))
            throw new Exception('Invalid HTTP method used');

        if (trim($this->endpoint) === '')
            throw new Exception('Empty endpoint used');

        // Enfore a version specification unless this is a 'meta' call.
        if (trim($this->version) === '' && ! (in_array('meta', $this->tags())))
            throw new Exception('Version is empty');
    }
public function validateCall(): void
    {

        if (! in_array($this->method, ['get', 'post', 'put', 'patch', 'delete']))
            throw new Exception('Invalid HTTP method used');

        if (trim($this->endpoint) === '')
            throw new Exception('Empty endpoint used');

        // Enfore a version specification unless this is a 'meta' call.
        if (trim($this->version) === '' && ! (in_array('meta', $this->tags())))
            throw new Exception('Version is empty');
    }
public function validateCall ( ) : void { if ( ! in_array ( $ this -> method , [ 'get' , 'post' , 'put' , 'patch' , 'delete' ] ) ) throw new Exception ( 'Invalid HTTP method used' ) ; if ( trim ( $ this -> endpoint ) === '' ) throw new Exception ( 'Empty endpoint used' ) ; // Enfore a version specification unless this is a 'meta' call. if ( trim ( $ this -> version ) === '' && ! ( in_array ( 'meta' , $ this -> tags ( ) ) ) ) throw new Exception ( 'Version is empty' ) ; }
Validates a call to ensure that a method and endpoint is set
in the job that is using this base class.

@return void
@throws \Exception
Validates a call to ensure that a method and endpoint is set in the job that is using this base class .