1 | <?php |
||
10 | class SecurityRequirements extends AbstractModel implements Arrayable, \Iterator { |
||
11 | |||
12 | /** @var Map */ |
||
13 | private $securities; |
||
14 | |||
15 | public function __construct($contents = []) { |
||
18 | |||
19 | private function parse($contents) { |
||
30 | |||
31 | public function toArray() { |
||
41 | |||
42 | public function size() { |
||
45 | |||
46 | /** |
||
47 | * Returns whether a security with the given id exists |
||
48 | * |
||
49 | * @param string $id |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function has($id) { |
||
55 | |||
56 | /** |
||
57 | * Returns the scopes for the given id |
||
58 | * |
||
59 | * @param string $id |
||
60 | * @return Set |
||
61 | */ |
||
62 | public function get($id) { |
||
68 | |||
69 | /** |
||
70 | * Sets the scheme |
||
71 | * |
||
72 | * @param string $id |
||
73 | * @param Set $scopes |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function add($id, Set $scopes) { |
||
80 | |||
81 | /** |
||
82 | * Removes the given security |
||
83 | * |
||
84 | * @param string $id |
||
85 | */ |
||
86 | public function remove($id) { |
||
90 | |||
91 | public function current() { |
||
94 | |||
95 | public function key() { |
||
98 | |||
99 | public function next() { |
||
102 | |||
103 | public function rewind() { |
||
106 | |||
107 | public function valid() { |
||
110 | } |
||
111 |