protected function setEndpointDomains(EndpointCollection $endpoints)
    {
        foreach ($endpoints->getAllPaths() as $path) {
            if (is_null($path->domain)) {
                $path->domain = $this->domain;
            }
        }
    }
protected function setEndpointDomains(EndpointCollection $endpoints)
    {
        foreach ($endpoints->getAllPaths() as $path) {
            if (is_null($path->domain)) {
                $path->domain = $this->domain;
            }
        }
    }
protected function setEndpointDomains ( EndpointCollection $ endpoints ) { foreach ( $ endpoints -> getAllPaths ( ) as $ path ) { if ( is_null ( $ path -> domain ) ) { $ path -> domain = $ this -> domain ; } } }
Set the domain on the endpoints.

@param EndpointCollection $endpoints

@return void
Set the domain on the endpoints .