public function addEndpoint(Endpoint $endpoint): Route
	{
		$this->endpoints[get_class($endpoint)] = $endpoint;
		return $this;
	}
public function addEndpoint(Endpoint $endpoint): Route
	{
		$this->endpoints[get_class($endpoint)] = $endpoint;
		return $this;
	}
public function addEndpoint ( Endpoint $ endpoint ) : Route { $ this -> endpoints [ get_class ( $ endpoint ) ] = $ endpoint ; return $ this ; }
Add an endpoint to route

@param Endpoint $endpoint

@return Route
Add an endpoint to route