public function addEndpoint($publicUrl, $adminUrl)
    {
        $endpoint = new Endpoint();
        $endpoint->setPublicUrl($publicUrl);
        $endpoint->setAdminUrl($adminUrl);
        $endpoint->setService($this);

        $this->endpoints[] = $endpoint;

        return $this;
    }