1 | <?php declare(strict_types = 1); |
||
14 | class Set extends Container |
||
15 | { |
||
16 | /** |
||
17 | * Check whether an equal member alredy exists in this Set. |
||
18 | */ |
||
19 | public function contains($member): bool |
||
20 | { |
||
21 | return $member->uri ? !!$this->findURI($member->uri) : false; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Return the offset of a member Resource with given URI, if it exists. |
||
26 | */ |
||
27 | public function findURI(string $uri) |
||
35 | |||
36 | /** |
||
37 | * Return whether this set does not contain same resources. |
||
38 | */ |
||
39 | public function isValid() |
||
54 | } |
||
55 |