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