1 | <?php |
||
7 | abstract class AbstractFixture |
||
8 | { |
||
9 | protected $tags = array(); |
||
10 | |||
11 | protected $file; |
||
12 | |||
13 | protected $loader; |
||
14 | |||
15 | protected $manager; |
||
16 | |||
17 | public function __construct(array $data, $loader) |
||
25 | |||
26 | /** |
||
27 | * Returns if the given tag is set for the current fixture |
||
28 | * @param type $tag |
||
|
|||
29 | * @return boolean |
||
30 | */ |
||
31 | public function hasTag(Array $tags) |
||
40 | |||
41 | /** |
||
42 | * @param the object on which to run the service calls |
||
43 | */ |
||
44 | public function runServiceCalls($object) |
||
54 | |||
55 | public function load(ObjectManager $manager, $tags = null) |
||
82 | |||
83 | public function getMetadataForClass($class) |
||
89 | |||
90 | /** |
||
91 | * For fixtures that have relations to the same table, they need to appear |
||
92 | * in the opposite order that they need to be saved. |
||
93 | * @return boolean |
||
94 | */ |
||
95 | public function isReverseSaveOrder() |
||
103 | |||
104 | /** |
||
105 | * Extract the constructor arguments |
||
106 | * |
||
107 | * @param array $arguments |
||
108 | * @return mixed |
||
109 | */ |
||
110 | public function constructorArgs($arguments) |
||
134 | |||
135 | /** |
||
136 | * Creates an instance with any given constructor args |
||
137 | * |
||
138 | * @param string $class |
||
139 | * @param array $data |
||
140 | * @return void |
||
141 | */ |
||
142 | public function makeInstance($class, $data) |
||
152 | |||
153 | /** |
||
154 | * Creates and returns one object based on the given data and metadata |
||
155 | * |
||
156 | * @param $class object's class name |
||
157 | * @param $data array of the object's fixture data |
||
158 | * @param $metadata the class metadata for doctrine |
||
159 | * @param $options options specific to each implementation |
||
160 | * @return Object |
||
161 | */ |
||
162 | abstract public function createObject($class, $data, $metadata, $options = array()); |
||
163 | } |
||
164 |
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.