app/Blueprint/Infrastructure/Service/Service.php
public function addLinksFrom(Service $service) {
	    $links = $service->getLinks();
	    foreach($links as $name => $link) {
	        if (is_numeric($name)) {
                $this->addLink($link);
            } else {
                $this->addLink($link, $name);
            }
        }

        $externalLinks = $service->getExternalLinks();
	    foreach($externalLinks as $name => $link) {
	        if (is_numeric($name)) {
                $this->addExternalLink($link);
            } else {
                $this->addExternalLink($link, $name);
            }
        }

	}
public function addLinksFrom(Service $service) {
	    $links = $service->getLinks();
	    foreach($links as $name => $link) {
	        if (is_numeric($name)) {
                $this->addLink($link);
            } else {
                $this->addLink($link, $name);
            }
        }

        $externalLinks = $service->getExternalLinks();
	    foreach($externalLinks as $name => $link) {
	        if (is_numeric($name)) {
                $this->addExternalLink($link);
            } else {
                $this->addExternalLink($link, $name);
            }
        }

	}
public function addLinksFrom ( Service $ service ) { $ links = $ service -> getLinks ( ) ; foreach ( $ links as $ name => $ link ) { if ( is_numeric ( $ name ) ) { $ this -> addLink ( $ link ) ; } else { $ this -> addLink ( $ link , $ name ) ; } } $ externalLinks = $ service -> getExternalLinks ( ) ; foreach ( $ externalLinks as $ name => $ link ) { if ( is_numeric ( $ name ) ) { $ this -> addExternalLink ( $ link ) ; } else { $ this -> addExternalLink ( $ link , $ name ) ; } } }
Add internal and external links from other service
@param Service $service
Add internal and external links from other service