1 | <?php |
||
9 | final class ShibbolethMetadataScope implements Serializable |
||
10 | { |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | private $literal; |
||
15 | |||
16 | /** |
||
17 | * @var RegularExpression|null |
||
18 | */ |
||
19 | private $regexp; |
||
20 | |||
21 | /** |
||
22 | * @param string $literal |
||
23 | * @return ShibbolethMetadataScope |
||
24 | */ |
||
25 | public static function literal($literal) |
||
34 | |||
35 | /** |
||
36 | * @param string $regexp |
||
37 | * @return ShibbolethMetadataScope |
||
38 | */ |
||
39 | public static function regexp($regexp) |
||
48 | |||
49 | private function __construct() |
||
52 | |||
53 | /** |
||
54 | * @param string $string |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function allows($string) |
||
67 | |||
68 | /** |
||
69 | * @param ShibbolethMetadataScope $other |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function equals(ShibbolethMetadataScope $other) |
||
77 | |||
78 | public static function deserialize($data) |
||
88 | |||
89 | public function serialize() |
||
96 | |||
97 | public function __toString() |
||
105 | } |
||
106 |