/** * Add endpoint. * * @param string $publicUrl * @param string $adminUrl * * @return $this */ public function addEndpoint($publicUrl, $adminUrl) { $endpoint = new Endpoint(); $endpoint->setPublicUrl($publicUrl); $endpoint->setAdminUrl($adminUrl); $endpoint->setService($this); $this->endpoints[] = $endpoint; return $this; }