for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="resource_right")
*/
class ResourceRight
{
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\ResourceLink", inversedBy="resourceRight")
* @ORM\JoinColumn(name="resource_link_id", referencedColumnName="id", onDelete="CASCADE")
protected $resourceLink;
* @var string
*
* @ORM\Column(name="role", type="string", length=255, nullable=false)
protected $role;
* @ORM\Column(name="mask", type="integer", nullable=false)
protected $mask;
public function __toString(): string
return (string) $this->getId();
}
* @return int
public function getId()
return $this->id;
* @return string
public function getMask()
return $this->mask;
* @param string $mask
* @return $this
public function setMask($mask)
$this->mask = $mask;
return $this;
* @return ResourceLink
public function getResourceLink()
return $this->resourceLink;
public function setResourceLink(ResourceLink $resourceLink): self
$this->resourceLink = $resourceLink;
public function getRole(): string
return $this->role;
public function setRole(string $role): self
$this->role = $role;