1 | <?php |
||
10 | class SecurityDefinitions extends AbstractModel implements Arrayable, \Iterator { |
||
11 | |||
12 | /** @var Map */ |
||
13 | private $schemes; |
||
14 | |||
15 | public function __construct($contents = []) { |
||
18 | |||
19 | private function parse($contents) { |
||
28 | |||
29 | public function toArray() { |
||
32 | |||
33 | public function size() { |
||
36 | |||
37 | /** |
||
38 | * Returns whether a scheme with the given id exists |
||
39 | * |
||
40 | * @param string $id |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function has($id) { |
||
46 | |||
47 | /** |
||
48 | * Returns whether the given scheme exists |
||
49 | * |
||
50 | * @param SecurityScheme $scheme |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function contains(SecurityScheme $scheme) { |
||
56 | |||
57 | /** |
||
58 | * Returns the scheme info for the given id |
||
59 | * |
||
60 | * @param string $id |
||
61 | * @return SecurityScheme |
||
62 | */ |
||
63 | public function get($id) { |
||
69 | |||
70 | /** |
||
71 | * Sets the scheme |
||
72 | * |
||
73 | * @param SecurityScheme $scheme |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function add(SecurityScheme $scheme) { |
||
80 | |||
81 | /** |
||
82 | * Adds all schemes from another definitions collection. Will overwrite existing operations. |
||
83 | * |
||
84 | * @param SecurityDefinitions $schemes |
||
|
|||
85 | */ |
||
86 | public function addAll(SecurityDefinitions $definitions) { |
||
91 | |||
92 | /** |
||
93 | * Removes the given scheme |
||
94 | * |
||
95 | * @param string $scheme |
||
96 | */ |
||
97 | public function remove($scheme) { |
||
101 | |||
102 | public function current() { |
||
105 | |||
106 | public function key() { |
||
109 | |||
110 | public function next() { |
||
113 | |||
114 | public function rewind() { |
||
117 | |||
118 | public function valid() { |
||
121 | } |
||
122 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.