| 1 | <?php |
||
| 5 | abstract class FieldContainer extends AbstractType |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Field[] |
||
| 9 | */ |
||
| 10 | private $fields = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The model class |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $model; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $resolveConfig = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return Field[] |
||
| 26 | */ |
||
| 27 | public function getFields() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array $fields |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setFields(array $fields) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param array $fields |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function addFields(array $fields) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getModel() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $model |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setModel($model) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return array |
||
| 75 | */ |
||
| 76 | public function getResolveConfig() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param array $resolveConfig |
||
| 83 | * @return $this |
||
| 84 | */ |
||
| 85 | public function setResolveConfig(array $resolveConfig) |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @param array $resolveConfig |
||
| 94 | * @return $this |
||
| 95 | */ |
||
| 96 | public function mergeResolveConfig(array $resolveConfig) |
||
| 102 | |||
| 103 | /** |
||
| 104 | * {@inheritdoc} |
||
| 105 | */ |
||
| 106 | public function toMapping() |
||
| 117 | } |
||
| 118 |
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..