|
|
@ -7,6 +7,7 @@ declare(strict_types=1); |
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
|
|
|
|
|
|
|
|
|
|
use Chamilo\CoreBundle\Repository\PermissionRelRoleRepository; |
|
|
|
use Chamilo\CoreBundle\Repository\PermissionRelRoleRepository; |
|
|
|
|
|
|
|
use DateTime; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
|
|
|
|
|
|
@ -36,7 +37,7 @@ class PermissionRelRole |
|
|
|
private bool $changeable; |
|
|
|
private bool $changeable; |
|
|
|
|
|
|
|
|
|
|
|
#[ORM\Column(type: 'datetime')] |
|
|
|
#[ORM\Column(type: 'datetime')] |
|
|
|
private \DateTime $updatedAt; |
|
|
|
private DateTime $updatedAt; |
|
|
|
|
|
|
|
|
|
|
|
public function getId(): ?int |
|
|
|
public function getId(): ?int |
|
|
|
{ |
|
|
|
{ |
|
|
@ -51,6 +52,7 @@ class PermissionRelRole |
|
|
|
public function setPermission(Permission $permission): self |
|
|
|
public function setPermission(Permission $permission): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->permission = $permission; |
|
|
|
$this->permission = $permission; |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -62,6 +64,7 @@ class PermissionRelRole |
|
|
|
public function setRoleCode(string $roleCode): self |
|
|
|
public function setRoleCode(string $roleCode): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->roleCode = $roleCode; |
|
|
|
$this->roleCode = $roleCode; |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -73,17 +76,19 @@ class PermissionRelRole |
|
|
|
public function setChangeable(bool $changeable): self |
|
|
|
public function setChangeable(bool $changeable): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->changeable = $changeable; |
|
|
|
$this->changeable = $changeable; |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getUpdatedAt(): \DateTime |
|
|
|
public function getUpdatedAt(): DateTime |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->updatedAt; |
|
|
|
return $this->updatedAt; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function setUpdatedAt(\DateTime $updatedAt): self |
|
|
|
public function setUpdatedAt(DateTime $updatedAt): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->updatedAt = $updatedAt; |
|
|
|
$this->updatedAt = $updatedAt; |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|