1 | <?php |
||
10 | class Definitions extends AbstractModel implements Arrayable, \Iterator { |
||
11 | |||
12 | /** @var Map */ |
||
13 | private $definitions; |
||
14 | |||
15 | 13 | public function __construct($contents = []) { |
|
18 | |||
19 | 13 | private function parse($contents) { |
|
27 | |||
28 | 11 | public function toArray() { |
|
31 | |||
32 | 1 | public function size() { |
|
35 | |||
36 | /** |
||
37 | * Returns the schema for the given field |
||
38 | * |
||
39 | * @param string $name |
||
40 | * @return Schema |
||
41 | */ |
||
42 | 1 | public function get($name) { |
|
48 | |||
49 | /** |
||
50 | * Sets the field |
||
51 | * |
||
52 | * @param string name |
||
53 | * @param Schema $schame |
||
|
|||
54 | */ |
||
55 | 1 | public function set($name, Schema $schema) { |
|
58 | |||
59 | /** |
||
60 | * Sets all definitions from another definitions collection. Will overwrite existing ones. |
||
61 | * |
||
62 | * @param Definitions $definitions |
||
63 | */ |
||
64 | public function setAll(Definitions $definitions) { |
||
69 | |||
70 | /** |
||
71 | * Removes the given field |
||
72 | * |
||
73 | * @param string $name |
||
74 | */ |
||
75 | 1 | public function remove($name) { |
|
78 | |||
79 | /** |
||
80 | * Returns definitions has a schema with the given name |
||
81 | * |
||
82 | * @param string $name |
||
83 | * @return bool |
||
84 | */ |
||
85 | 1 | public function has($name) { |
|
88 | |||
89 | /** |
||
90 | * Returns whether the given schema exists |
||
91 | * |
||
92 | * @param Schema $schema |
||
93 | * @return bool |
||
94 | */ |
||
95 | 1 | public function contains(Schema $schema) { |
|
98 | |||
99 | public function current() { |
||
102 | |||
103 | public function key() { |
||
106 | |||
107 | public function next() { |
||
110 | |||
111 | public function rewind() { |
||
114 | |||
115 | public function valid() { |
||
118 | } |
||
119 |
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.