public function modifyCollection(EndpointCollection $endpoints, ReflectionClass $class) { if ($this->prefix) { $this->prefixEndpoints($endpoints); } if ($this->domain) { $this->setEndpointDomains($endpoints); } }