| 1 | <?php  | 
            ||
| 11 | class Score extends BaseEntity  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @var float  | 
            ||
| 15 | */  | 
            ||
| 16 | private $score;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * @var int  | 
            ||
| 20 | */  | 
            ||
| 21 | private $scoredBy;  | 
            ||
| 22 | |||
| 23 | 2 | public function __construct(?float $score, ?int $scoredBy)  | 
            |
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * @return float  | 
            ||
| 31 | */  | 
            ||
| 32 | 2 | public function getScore(): ?float  | 
            |
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * @param float $score  | 
            ||
| 39 | *  | 
            ||
| 40 | * @return Score  | 
            ||
| 41 | */  | 
            ||
| 42 | 1 | public function setScore(float $score): Score  | 
            |
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * @return int  | 
            ||
| 51 | */  | 
            ||
| 52 | 2 | public function getScoredBy(): ?int  | 
            |
| 56 | |||
| 57 | /**  | 
            ||
| 58 | * @param int $scoredBy  | 
            ||
| 59 | *  | 
            ||
| 60 | * @return Score  | 
            ||
| 61 | */  | 
            ||
| 62 | 1 | public function setScoredBy(int $scoredBy): Score  | 
            |
| 68 | |||
| 69 | /**  | 
            ||
| 70 | * @inheritDoc  | 
            ||
| 71 | */  | 
            ||
| 72 | 1 | public function jsonSerialize(): array  | 
            |
| 79 | }  |