| 1 | <?php |
||
| 7 | final class CreateDamageCommand |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $flightId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $authorId; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var float |
||
| 22 | */ |
||
| 23 | private $amount; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $billId; |
||
| 29 | |||
| 30 | public function __construct($flightId, $authorId) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | public function getFlightId() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $flightId |
||
| 49 | */ |
||
| 50 | public function setFlightId($flightId) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return int |
||
| 57 | */ |
||
| 58 | public function getAuthorId() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param int $authorId |
||
| 65 | */ |
||
| 66 | public function setAuthorId($authorId) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return float |
||
| 73 | */ |
||
| 74 | public function getAmount() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param float $amount |
||
| 81 | */ |
||
| 82 | public function setAmount($amount) |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return int |
||
| 89 | */ |
||
| 90 | public function getBillId() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @param int $billId |
||
| 97 | */ |
||
| 98 | public function setBillId($billId) |
||
| 102 | |||
| 103 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.