mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			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;
 | 
						|
use App\Entity\Attribut\LawAttribut;
 | 
						|
 | 
						|
/**
 | 
						|
 * @author kevinfrantz
 | 
						|
 * @ORM\Table(name="`right`")
 | 
						|
 * @ORM\Entity(repositoryClass="App\Repository\RightRepository")
 | 
						|
 */
 | 
						|
class Right extends AbstractEntity implements RightInterface
 | 
						|
{
 | 
						|
    use TypeAttribut,LawAttribut;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @ORM\ManyToOne(targetEntity="Law",cascade={"persist", "remove"})
 | 
						|
     * @ORM\JoinColumn(name="law_id", referencedColumnName="id")
 | 
						|
     *
 | 
						|
     * @var LawInterface
 | 
						|
     */
 | 
						|
    protected $law;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @ORM\Column(name="type", type="RightType", nullable=false)
 | 
						|
     * @DoctrineAssert\Enum(entity="App\DBAL\Types\RightType")
 | 
						|
     *
 | 
						|
     * @var string
 | 
						|
     */
 | 
						|
    protected $type;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @ORM\OneToMany(targetEntity="Right", mappedBy="id", cascade={"persist", "remove"})
 | 
						|
     *
 | 
						|
     * @var ArrayCollection
 | 
						|
     */
 | 
						|
    protected $permissions;
 | 
						|
 | 
						|
    public function isGranted(NodeInterface $node): bool
 | 
						|
    {
 | 
						|
    }
 | 
						|
 | 
						|
    public function setPermissions(ArrayCollection $permissions): void
 | 
						|
    {
 | 
						|
    }
 | 
						|
}
 |