mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-02-12 05:54:21 +01:00
30 lines
480 B
PHP
30 lines
480 B
PHP
<?php
|
|
|
|
namespace App\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;
|
|
}
|
|
}
|