| 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") |
||
| 35 | */ |
||
| 36 | private $createdAt; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * CurrencyDocument constructor. |
||
| 40 | */ |
||
| 41 | public function __construct() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return RatesObject |
||
| 49 | */ |
||
| 50 | public function getRates() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param RatesObject $rates |
||
| 57 | */ |
||
| 58 | public function setRates($rates) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param RatesObject $rate |
||
| 65 | 3 | */ |
|
| 66 | public function addRate($rate) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return \DateTime |
||
| 73 | */ |
||
| 74 | public function getCreatedAt() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param \DateTime $createdAt |
||
| 81 | */ |
||
| 82 | public function setCreatedAt($createdAt) |
||
| 86 | } |
||
| 87 |
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..