public function endpoint(Endpoint $endpoint = null)
    {
        if ($endpoint === null) {
            return $this->getRepository();
        }

        $this->repository($endpoint);

        return $this;
    }
public function endpoint(Endpoint $endpoint = null)
    {
        if ($endpoint === null) {
            return $this->getRepository();
        }

        $this->repository($endpoint);

        return $this;
    }
public function endpoint ( Endpoint $ endpoint = null ) { if ( $ endpoint === null ) { return $ this -> getRepository ( ) ; } $ this -> repository ( $ endpoint ) ; return $ this ; }
Set the endpoint to be used

@param \Muffin\Webservice\Model\Endpoint|null $endpoint The endpoint to use
@return \Muffin\Webservice\Model\Endpoint|$this
Set the endpoint to be used