setClients() public method

public setClients ( Doctrine\Common\Collections\Collection $clients )
$clients Doctrine\Common\Collections\Collection
Exemplo n.º 1
0
 /**
  * @return \WellCommerce\Bundle\ClientBundle\Entity\ClientGroupInterface
  */
 public function create()
 {
     $clientGroup = new ClientGroup();
     $clientGroup->setDiscount(0);
     $clientGroup->setClients(new ArrayCollection());
     $clientGroup->setPages(new ArrayCollection());
     return $clientGroup;
 }
 public function create() : ClientGroupInterface
 {
     $group = new ClientGroup();
     $group->setDiscount(0);
     $group->setClients($this->createEmptyCollection());
     $group->setPages($this->createEmptyCollection());
     return $group;
 }