mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Deleted unnecessary traits
This commit is contained in:
parent
b84117f3d6
commit
d6acd3b0a6
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user