1 | <?php declare (strict_types=1); |
||
22 | class DefaultRole implements RoleInterface, ObjectInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $roleName; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $roleDescription; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function __construct(string $roleName, string $roleDescription="") |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function getName() : string |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getDescription() : string |
||
58 | |||
59 | /** |
||
60 | * Returns the roleName when this class is treated as a string. |
||
61 | */ |
||
62 | public function __toString() : string |
||
66 | } |
||
67 |