mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-03-17 12:23:32 +01:00
34 lines
695 B
PHP
34 lines
695 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity\Attribut;
|
||
|
|
||
|
use Doctrine\Common\Collections\Collection;
|
||
|
use App\Entity\Source\Collection\MemberCollectionSourceInterface;
|
||
|
|
||
|
/**
|
||
|
* @author kevinfrantz
|
||
|
*/
|
||
|
trait MembershipsAttribut
|
||
|
{
|
||
|
/**
|
||
|
* @var Collection|MemberCollectionSourceInterface[]
|
||
|
*/
|
||
|
protected $memberships;
|
||
|
|
||
|
/**
|
||
|
* @return Collection|MemberCollectionSourceInterface[]
|
||
|
*/
|
||
|
public function getMemberships(): Collection
|
||
|
{
|
||
|
return $this->memberships;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param Collection|MemberCollectionSourceInterface[] $memberships
|
||
|
*/
|
||
|
public function setMemberships(Collection $memberships): void
|
||
|
{
|
||
|
$this->memberships = $memberships;
|
||
|
}
|
||
|
}
|