1 | <?php |
||
22 | class CurrencyDocument |
||
23 | { |
||
24 | /** |
||
25 | * @var RatesObject |
||
26 | * |
||
27 | * @ES\Embedded(class="ONGRCurrencyExchangeBundle:RatesObject", multiple=true) |
||
28 | */ |
||
29 | private $rates; |
||
30 | |||
31 | /** |
||
32 | * @var \DateTime |
||
33 | * |
||
34 | * @ES\Property(type="date", options={"format":"date||yyyy-MM-dd"}) |
||
35 | */ |
||
36 | private $date; |
||
37 | |||
38 | /** |
||
39 | * @var \DateTime |
||
40 | * |
||
41 | * @ES\Property(type="date") |
||
42 | */ |
||
43 | private $createdAt; |
||
44 | |||
45 | /** |
||
46 | * CurrencyDocument constructor. |
||
47 | */ |
||
48 | public function __construct() |
||
54 | |||
55 | /** |
||
56 | * @return Collection |
||
57 | */ |
||
58 | public function getRates() |
||
62 | |||
63 | /** |
||
64 | * @param Collection $rates |
||
65 | 3 | */ |
|
66 | public function setRates($rates) |
||
70 | |||
71 | /** |
||
72 | * @param RatesObject|array $rate |
||
73 | */ |
||
74 | public function addRate($rate) |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getDate() |
||
86 | |||
87 | /** |
||
88 | * @param string $date |
||
89 | */ |
||
90 | public function setDate($date) |
||
94 | |||
95 | /** |
||
96 | * @return \DateTime |
||
97 | */ |
||
98 | public function getCreatedAt() |
||
102 | |||
103 | /** |
||
104 | * @param \DateTime $createdAt |
||
105 | */ |
||
106 | public function setCreatedAt($createdAt) |
||
110 | } |
||
111 |
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..