Added source collection draft

This commit is contained in:
Kevin Frantz
2018-10-25 22:03:10 +02:00
parent e066e8b362
commit 4bd1078491
6 changed files with 342 additions and 2 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}