1 | <?php |
||
35 | final class Seed extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject implements \Dennis\Seeder\Seed |
||
36 | { |
||
37 | /** |
||
38 | * title |
||
39 | * |
||
40 | * @var string $title |
||
41 | * @validate NotEmpty |
||
42 | */ |
||
43 | private $title = ''; |
||
44 | |||
45 | /** |
||
46 | * target |
||
47 | * |
||
48 | * @var string $target |
||
49 | * @validate NotEmpty |
||
50 | */ |
||
51 | protected $target = ''; |
||
52 | |||
53 | /** |
||
54 | * properties |
||
55 | * |
||
56 | * @var array $properties |
||
57 | */ |
||
58 | protected $properties; |
||
59 | |||
60 | /** |
||
61 | * @var bool |
||
62 | */ |
||
63 | protected $executed = false; |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getTitle() |
||
72 | |||
73 | /** |
||
74 | * @param string $title |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setTitle($title) |
||
83 | |||
84 | /** |
||
85 | * setProperties |
||
86 | * |
||
87 | * @param $properties |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function setProperties(array $properties) |
||
96 | |||
97 | /** |
||
98 | * getProperties |
||
99 | * |
||
100 | * @return array |
||
101 | */ |
||
102 | public function getProperties() |
||
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getTarget() |
||
119 | |||
120 | /** |
||
121 | * The target, for example the table name |
||
122 | * |
||
123 | * @param string $target |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setTarget($target) |
||
132 | |||
133 | /** |
||
134 | * Overrides given properties |
||
135 | * |
||
136 | * @param array $properties |
||
137 | * @throws \InvalidArgumentException |
||
138 | * @return void |
||
139 | */ |
||
140 | public function set(array $properties) |
||
147 | |||
148 | /** |
||
149 | * @param bool $isExecuted |
||
|
|||
150 | * @return bool |
||
151 | */ |
||
152 | public function isExecuted($isExecuted = null) |
||
160 | } |
||
161 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.