mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-03-15 11:25:18 +01:00
30 lines
487 B
PHP
30 lines
487 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity\Attribut;
|
||
|
|
||
|
use Doctrine\Common\Collections\Collection;
|
||
|
|
||
|
trait CollectionAttribut
|
||
|
{
|
||
|
/**
|
||
|
* @var Collection
|
||
|
*/
|
||
|
protected $collection;
|
||
|
|
||
|
/**
|
||
|
* @return Collection
|
||
|
*/
|
||
|
public function getCollection(): Collection
|
||
|
{
|
||
|
return $this->collection;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param Collection $collection
|
||
|
*/
|
||
|
public function setCollection(Collection $collection): void
|
||
|
{
|
||
|
$this->collection = $collection;
|
||
|
}
|
||
|
}
|