| 1 | <?php |
||
| 11 | class GetPilotsWithMissionsQuery |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $year; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $quarter; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param int $year |
||
| 26 | * @param int $quarter |
||
| 27 | */ |
||
| 28 | public function __construct($year, $quarter = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function getYear() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getQuarter() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function hasQuarter() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function isPilotsOnly() |
||
| 65 | } |
||
| 66 |