/** * Construct */ public function __construct(Tag $tag) { if (null !== $tag) { $this->id = $tag->getId(); $this->setI18nTitle($tag->getI18nTitle()); $this->setI18nDescription($tag->getI18nDescription()); $this->slug = $tag->getSlug(); $this->cod = $tag->getCod(); $this->metatag = $tag->getMetatag(); $this->display = $tag->getDisplay(); $this->locale = $tag->getLocale(); $this->created = $tag->getCreated(); $this->updated = $tag->getUpdated(); $this->path = $tag->getPath(); $this->level = $tag->getLevel(); } }