src/Sulu/Bundle/WebsiteBundle/Entity/Analytics.php
public function addDomain(Domain $domain)
    {
        if ($this->domains->contains($domain)) {
            return $this;
        }

        $this->domains[] = $domain;

        return $this;
    }
public function addDomain(Domain $domain)
    {
        if ($this->domains->contains($domain)) {
            return $this;
        }

        $this->domains[] = $domain;

        return $this;
    }
public function addDomain ( Domain $ domain ) { if ( $ this -> domains -> contains ( $ domain ) ) { return $ this ; } $ this -> domains [ ] = $ domain ; return $ this ; }
Add domain.

@param Domain $domain

@return self
Add domain .