mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Added source collection draft
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace App\Entity\Source\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait SourceMembersAttribut
|
||||
{
|
||||
/**
|
||||
* @var Collection
|
||||
*/
|
||||
protected $members;
|
||||
|
||||
public function getMembers():Collection{
|
||||
return $this->members;
|
||||
}
|
||||
|
||||
public function setMembers(Collection $members):void{
|
||||
$this->members = $members;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace App\Entity\Source\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
/**
|
||||
* Allows to group other sources in a source
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface SourceMembersAttributInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Sets the collection source members
|
||||
*
|
||||
* @param Collection $members
|
||||
*/
|
||||
public function setMembers(Collection $members): void;
|
||||
|
||||
/**
|
||||
* Returns the collection source members
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getMembers(): Collection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user