1 | <?php |
||
15 | final class ShibbolethMetadataScopeList implements Countable, IteratorAggregate, Serializable |
||
16 | { |
||
17 | /** |
||
18 | * @var ShibbolethMetadataScope[] |
||
19 | */ |
||
20 | private $scopes = array(); |
||
21 | |||
22 | /** |
||
23 | * @param ShibbolethMetadataScope[] $scopes |
||
24 | */ |
||
25 | public function __construct(array $scopes = array()) |
||
31 | |||
32 | /** |
||
33 | * @param string $string |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function inScope($string) |
||
48 | |||
49 | /** |
||
50 | * @param ShibbolethMetadataScope $scope |
||
51 | * @return ShibbolethMetadataScopeList |
||
52 | */ |
||
53 | public function add(ShibbolethMetadataScope $scope) |
||
57 | |||
58 | /** |
||
59 | * @param ShibbolethMetadataScope $shibbolethMetadataScope |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function contains(ShibbolethMetadataScope $shibbolethMetadataScope) |
||
72 | |||
73 | /** |
||
74 | * @param ShibbolethMetadataScope $shibbolethMetadataScope |
||
75 | * @return int |
||
76 | */ |
||
77 | public function indexOf(ShibbolethMetadataScope $shibbolethMetadataScope) |
||
87 | |||
88 | /** |
||
89 | * @param int $index |
||
90 | * @return ShibbolethMetadataScope |
||
91 | */ |
||
92 | public function get($index) |
||
106 | |||
107 | /** |
||
108 | * @param Callable $predicate |
||
109 | * @return null|ShibbolethMetadataScope |
||
110 | */ |
||
111 | public function find($predicate) |
||
123 | |||
124 | /** |
||
125 | * @param ShibbolethMetadataScopeList $other |
||
126 | * @return bool |
||
127 | */ |
||
128 | public function equals(ShibbolethMetadataScopeList $other) |
||
142 | |||
143 | /** |
||
144 | * @return ShibbolethMetadataScope[] |
||
145 | */ |
||
146 | public function toArray() |
||
150 | |||
151 | public function getIterator() |
||
155 | |||
156 | public function count() |
||
160 | |||
161 | public static function deserialize($data) |
||
171 | |||
172 | public function serialize() |
||
178 | |||
179 | public function __toString() |
||
183 | } |
||
184 |