1 | <?php |
||
24 | final class RegistrationAuthorityRole implements SerializableInterface |
||
25 | { |
||
26 | const ROLE_RA = 1; |
||
27 | const ROLE_RAA = 2; |
||
28 | const ROLE_SRAA = 3; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $role; |
||
34 | |||
35 | /** |
||
36 | * @param string $role may not be an empty string |
||
37 | */ |
||
38 | public function __construct($role) |
||
48 | |||
49 | /** |
||
50 | * @param RegistrationAuthorityRole $role |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function equals(RegistrationAuthorityRole $role) |
||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isRa() |
||
65 | |||
66 | /** |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function isRaa() |
||
73 | |||
74 | /** |
||
75 | * return bool |
||
76 | */ |
||
77 | public function isSraa() |
||
81 | |||
82 | public function jsonSerialize() |
||
86 | |||
87 | public function __toString() |
||
91 | |||
92 | public static function deserialize(array $data) |
||
96 | |||
97 | public function serialize() |
||
101 | } |
||
102 |