mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
35 lines
807 B
PHP
35 lines
807 B
PHP
|
<?php
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||
|
use App\Entity\Attribut\TypeAttribut;
|
||
|
use App\DBAL\Types\RightType;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author kevinfrantz
|
||
|
* @ORM\Table(name="right")
|
||
|
* @ORM\Entity(repositoryClass="App\Repository\RightRepository")
|
||
|
*/
|
||
|
class Right extends AbstractEntity implements RightInterface
|
||
|
{
|
||
|
use TypeAttribut;
|
||
|
|
||
|
/**
|
||
|
* @ORM\Column(name="type", type="RightType", nullable=false)
|
||
|
* @DoctrineAssert\Enum(entity="App\DBAL\Types\RightType")
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $type;
|
||
|
|
||
|
public function isGranted(NodeInterface $node): bool
|
||
|
{}
|
||
|
|
||
|
public function setPermissions(ArrayCollection $permissions): void
|
||
|
{}
|
||
|
|
||
|
}
|
||
|
|