/** * @param Domain $domain * @return Domain */ public function check(Domain $domain) { $this->ssl->init($domain->getUrl()); $domain->setDate($this->ssl->getExiprationDate()); $domain->setIssuer($this->ssl->getIssuer('CN')); $this->em->persist($domain); $this->em->flush(); return $domain; }
/** * @param Domain $domains * @return Site */ public function addDomain(Domain $domains) { $this->domains[] = $domains; $domains->setSite($this); return $this; }