Removed deprecated trait,interface and test

This commit is contained in:
Kevin Frantz
2018-11-04 23:51:33 +01:00
parent b5062c01ba
commit cd3585c3e3
3 changed files with 0 additions and 182 deletions

View File

@@ -1,46 +0,0 @@
<?php
namespace App\Entity\Attribut;
use Doctrine\Common\Collections\Collection;
use App\Helper\DimensionHelper;
/**
* @author kevinfrantz
*
* @deprecated use instead CollectionDimensionHelper Method
*
* @todo this attribut should be refactored to mapp fully on collections instead of members
*/
trait MembersAttribut
{
/**
* @var Collection
*/
protected $collection;
public function getMembers(): Collection
{
return $this->collection;
}
public function setMembers(Collection $members): void
{
$this->collection = $members;
}
/**
* @param int $dimension The dimensions start with 1 for the members of the actuall dimension and NULL for all members
* @param Collection $members A reference to a members list, to which new members should be add
*
* @deprecated Use Instead CollectionDimensionHelperMethod
*
* @return Collection|MembersAttributInterface[] Returns all members till the defined dimension
*/
public function getMembersIncludingChildren(?int $dimension = null, Collection $members = null): Collection
{
$dimensionHelper = new DimensionHelper(__FUNCTION__, MembersAttributInterface::class, $this, 'members');
return $dimensionHelper->getDimensions($dimension, $members);
}
}

View File

@@ -1,28 +0,0 @@
<?php
namespace App\Entity\Attribut;
use Doctrine\Common\Collections\Collection;
/**
* Allows to group other sources in a source.
*
* @author kevinfrantz
*/
interface MembersAttributInterface
{
/**
* @param Collection $members
*/
public function setMembers(Collection $members): void;
/**
* @return Collection
*/
public function getMembers(): Collection;
/**
* @return Collection
*/
public function getMembersIncludingChildren(int $dimension = null): Collection;
}