Deleted unnecessary traits

This commit is contained in:
Kevin Frantz 2018-09-21 19:54:34 +02:00
parent b84117f3d6
commit d6acd3b0a6
2 changed files with 0 additions and 50 deletions

View File

@ -1,32 +0,0 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\PermissionInterface;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
*/
trait PermissionsAttribut
{
/**
* @var Collection
*/
protected $permissions;
public function setPermissions(Collection $permissions): void
{
$this->permissions = $permissions;
}
public function getPermissions(): Collection
{
return $this->permissions;
}
public function addPermission(PermissionInterface $permission): void
{
$this->permissions->add($permission);
}
}

View File

@ -1,18 +0,0 @@
<?php
namespace App\Entity\Attribut;
use App\Entity\PermissionInterface;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
*/
interface PermissionsAttributInterface
{
public function setPermissions(Collection $permissions): void;
public function getPermissions(): Collection;
public function addPermission(PermissionInterface $permission): void;
}