mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-15 17:58:16 +02:00
34 lines
659 B
PHP
34 lines
659 B
PHP
<?php
|
|
|
|
namespace App\Attribut;
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
trait MembershipsAttribut
|
|
{
|
|
/**
|
|
* @var Collection|MemberRelationInterface[]
|
|
*/
|
|
protected $memberships;
|
|
|
|
/**
|
|
* @return Collection|MemberRelationInterface[]
|
|
*/
|
|
public function getMemberships(): Collection
|
|
{
|
|
return $this->memberships;
|
|
}
|
|
|
|
/**
|
|
* @param Collection|MemberRelationInterface[] $memberships
|
|
*/
|
|
public function setMemberships(Collection $memberships): void
|
|
{
|
|
$this->memberships = $memberships;
|
|
}
|
|
}
|