| 1 | <?php |
||
| 13 | final class TicketType |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | * @Jms\Type("string") |
||
| 18 | * @ORM\Column(type="string") |
||
| 19 | */ |
||
| 20 | private $identifier; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Money |
||
| 24 | * @ORM\Embedded(class="ConferenceTools\Tickets\Domain\ValueObject\Price") |
||
| 25 | * @Jms\Type("ConferenceTools\Tickets\Domain\ValueObject\Price") |
||
| 26 | */ |
||
| 27 | private $price; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | * @Jms\Type("string") |
||
| 32 | * @ORM\Column(type="string") |
||
| 33 | */ |
||
| 34 | private $displayName; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * TicketType constructor. |
||
| 38 | * @param string $identifier |
||
| 39 | * @param Price $price |
||
| 40 | * @param string $displayName |
||
| 41 | */ |
||
| 42 | 11 | public function __construct(string $identifier, Price $price, string $displayName) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 5 | public function getIdentifier(): string |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return Price |
||
| 59 | */ |
||
| 60 | 7 | public function getPrice(): Price |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getDisplayName(): string |
||
| 72 | } |
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..