protected function checkEndpoint()
    {
        if ($this->endpoint == '' || null === $this->endpoint || empty($this->endpoint)) {
            throw new \RunTimeException('No endpoint defined.');
        }
    }
protected function checkEndpoint()
    {
        if ($this->endpoint == '' || null === $this->endpoint || empty($this->endpoint)) {
            throw new \RunTimeException('No endpoint defined.');
        }
    }
protected function checkEndpoint ( ) { if ( $ this -> endpoint == '' || null === $ this -> endpoint || empty ( $ this -> endpoint ) ) { throw new \ RunTimeException ( 'No endpoint defined.' ) ; } }
Perform a call

@throws \RuntimeException If no endpoint defined
Perform a call