| Total Complexity | 5 | 
| Total Lines | 66 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 6 | class GameResult | ||
| 7 | { | ||
| 8 | /** | ||
| 9 | * @var string | ||
| 10 | */ | ||
| 11 | private $firstTeamName; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @var string | ||
| 15 | */ | ||
| 16 | private $secondTeamName; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @var int | ||
| 20 | */ | ||
| 21 | private $firstTeamResult; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @var int | ||
| 25 | */ | ||
| 26 | private $secondTeamResult; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * @param string $firstTeamName | ||
| 30 | * @param string $secondTeamName | ||
| 31 | * @param int $firstTeamResult | ||
| 32 | * @param int $secondTeamResult | ||
| 33 | */ | ||
| 34 | public function __construct(string $firstTeamName, string $secondTeamName, int $firstTeamResult, int $secondTeamResult) | ||
| 35 |     { | ||
| 36 | $this->firstTeamName = $firstTeamName; | ||
| 37 | $this->secondTeamName = $secondTeamName; | ||
| 38 | $this->firstTeamResult = $firstTeamResult; | ||
| 39 | $this->secondTeamResult = $secondTeamResult; | ||
| 40 | } | ||
| 41 | |||
| 42 | /** | ||
| 43 | * @return string | ||
| 44 | */ | ||
| 45 | public function getFirstTeamName(): string | ||
| 46 |     { | ||
| 47 | return $this->firstTeamName; | ||
| 48 | } | ||
| 49 | |||
| 50 | /** | ||
| 51 | * @return string | ||
| 52 | */ | ||
| 53 | public function getSecondTeamName(): string | ||
| 56 | } | ||
| 57 | |||
| 58 | /** | ||
| 59 | * @return int | ||
| 60 | */ | ||
| 61 | public function getFirstTeamResult(): int | ||
| 62 |     { | ||
| 63 | return $this->firstTeamResult; | ||
| 64 | } | ||
| 65 | |||
| 66 | /** | ||
| 67 | * @return int | ||
| 68 | */ | ||
| 69 | public function getSecondTeamResult(): int | ||
| 72 | } | ||
| 73 | |||
| 74 | |||
| 76 | } |