1 | <?php |
||
10 | final class StepResult |
||
11 | { |
||
12 | /** @var \GameDomain\Player\PlayerInterface */ |
||
13 | protected $player; |
||
14 | |||
15 | /** @var \GameDomain\Round\Step\Answer */ |
||
16 | protected $playerAnswer; |
||
17 | |||
18 | /** @var \GameDomain\Round\Step\Answer */ |
||
19 | protected $validAnswer; |
||
20 | |||
21 | /** @var \GameDomain\Round\Step\Step */ |
||
22 | protected $step; |
||
23 | |||
24 | /** |
||
25 | * @param \GameDomain\Player\PlayerInterface $player |
||
26 | * @param \GameDomain\Round\Step\Answer $playerAnswer |
||
27 | * @param \GameDomain\Round\Step\Answer $validAnswer |
||
28 | * @param \GameDomain\Round\Step\Step $step |
||
29 | */ |
||
30 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * @return \GameDomain\Player\PlayerInterface |
||
44 | */ |
||
45 | public function getPlayer() |
||
49 | |||
50 | /** |
||
51 | * @return \GameDomain\Round\Step\Answer |
||
52 | */ |
||
53 | public function getPlayerAnswer() |
||
57 | |||
58 | /** |
||
59 | * @return \GameDomain\Round\Step\Answer |
||
60 | */ |
||
61 | public function getValidAnswer() |
||
65 | |||
66 | /** |
||
67 | * @return \GameDomain\Round\Step\Step |
||
68 | */ |
||
69 | public function getStep() |
||
73 | |||
74 | /** |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function isValid() |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function __toString() |
||
93 | } |
||
94 |