2018-11-01 20:42:18 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Entity\Attribut;
|
|
|
|
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
2018-11-10 16:19:08 +01:00
|
|
|
use App\Entity\Source\Collection\TreeCollectionSourceInterface;
|
2018-11-01 20:42:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
trait MembershipsAttribut
|
|
|
|
{
|
|
|
|
/**
|
2018-11-10 16:19:08 +01:00
|
|
|
* @var Collection|TreeCollectionSourceInterface[]
|
2018-11-01 20:42:18 +01:00
|
|
|
*/
|
|
|
|
protected $memberships;
|
|
|
|
|
|
|
|
/**
|
2018-11-10 16:19:08 +01:00
|
|
|
* @return Collection|TreeCollectionSourceInterface[]
|
2018-11-01 20:42:18 +01:00
|
|
|
*/
|
|
|
|
public function getMemberships(): Collection
|
|
|
|
{
|
|
|
|
return $this->memberships;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-11-10 16:19:08 +01:00
|
|
|
* @param Collection|TreeCollectionSourceInterface[] $memberships
|
2018-11-01 20:42:18 +01:00
|
|
|
*/
|
|
|
|
public function setMemberships(Collection $memberships): void
|
|
|
|
{
|
|
|
|
$this->memberships = $memberships;
|
|
|
|
}
|
|
|
|
}
|