WellCommerce\Bundle\PageBundle\Entity\Page::setClientGroups PHP Méthode

setClientGroups() public méthode

public setClientGroups ( Doctrine\Common\Collections\Collection $clientGroups )
$clientGroups Doctrine\Common\Collections\Collection
    public function setClientGroups(Collection $clientGroups)
    {
        $this->clientGroups = $clientGroups;
    }

Usage Example

 public function create() : PageInterface
 {
     $page = new Page();
     $page->setHierarchy(0);
     $page->setCreatedAt(new \DateTime());
     $page->setClientGroups($this->createEmptyCollection());
     $page->setShops($this->createEmptyCollection());
     $page->setParent(null);
     $page->setPublish(true);
     $page->setRedirectType(1);
     $page->setSection('');
     return $page;
 }