murph-skeleton/core/Site/RoleConfiguration.php
Simon Vieille ce5c69d467 rename core/EventSuscriber with core/EventSubscriber
add security roles in app configuration

add option to restrict node access to specific roles
2022-03-10 21:32:22 +01:00

39 lines
583 B
PHP

<?php
namespace App\Core\Site;
/**
* class RoleConfiguration.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class RoleConfiguration
{
protected string $name;
protected string $role;
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getName(): string
{
return $this->name;
}
public function setRole(string $role): self
{
$this->role = $role;
return $this;
}
public function getRole(): string
{
return $this->role;
}
}