1 | <?php |
||
8 | class ShellSeedProcessor { |
||
9 | |||
10 | /** |
||
11 | * Aseeder shell task instance |
||
12 | * |
||
13 | * @var null|SeederTaskBase |
||
14 | */ |
||
15 | protected $_seeder = null; |
||
16 | |||
17 | /** |
||
18 | * ModelTruncator constructor |
||
19 | * |
||
20 | * @param Shell $seeder A seeder shell task |
||
21 | */ |
||
22 | public function __construct($seeder) { |
||
25 | |||
26 | /** |
||
27 | * Process the fixtures |
||
28 | * |
||
29 | * @return void |
||
30 | */ |
||
31 | public function processFixtures() { |
||
38 | |||
39 | /** |
||
40 | * Sow the seeds |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function sowSeeds() { |
||
81 | |||
82 | /** |
||
83 | * Get the field formatters depending on the seeding mode |
||
84 | * |
||
85 | * 'manual' = No Field formatters are guessed. |
||
86 | * 'auto' = All field formatters are guessed. |
||
87 | * 'mixed' = Only missing field formatters are guessed. |
||
88 | * |
||
89 | * @return array The field formatters |
||
90 | */ |
||
91 | public function getFieldFormatters() { |
||
110 | |||
111 | /** |
||
112 | * Guess the field formatters based on the column type |
||
113 | * |
||
114 | * @return array The guessed field formatters. |
||
115 | */ |
||
116 | protected function _guessFieldFormatters() { |
||
126 | |||
127 | /** |
||
128 | * Get a ColumnTypeGuesser instance |
||
129 | * |
||
130 | * @return ColumnTypeGuesser A ColumnTypeGuesser instance. |
||
131 | */ |
||
132 | protected function _getColumnTypeGuesser() { |
||
135 | |||
136 | /** |
||
137 | * Get the columns (schema) |
||
138 | * |
||
139 | * Removes the primary key, though. |
||
140 | * |
||
141 | * @return array The columns (schema). |
||
142 | */ |
||
143 | protected function _getColumns() { |
||
149 | |||
150 | /** |
||
151 | * Create seed to sow |
||
152 | * |
||
153 | * Gets some (optional) record state data, |
||
154 | * which can be shared by all field formatters of one record. |
||
155 | * |
||
156 | * @param array $fieldFormatters The fields and their formatter |
||
157 | * @return array A seed to sow. |
||
158 | */ |
||
159 | public function createSeed($fieldFormatters) { |
||
169 | |||
170 | /** |
||
171 | * Save the seeds |
||
172 | * |
||
173 | * @param array $seeds The seeds to save. |
||
174 | * @return void |
||
175 | * @todo Make data saving/validation handling configurable (atomic true/false) |
||
176 | */ |
||
177 | public function saveSeeds($seeds) { |
||
198 | |||
199 | /** |
||
200 | * Get the model instance |
||
201 | * |
||
202 | * @return Model The model instance. |
||
203 | */ |
||
204 | protected function _getModel() { |
||
209 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..