| Total Complexity | 4 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class VideoPicture { |
||
| 24 | 1 | ||
| 25 | use IntegerIdTrait { |
||
| 26 | setId as public; |
||
| 27 | } |
||
| 28 | use StringRawDataTrait; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Number. |
||
| 32 | * |
||
| 33 | * @var int|null |
||
| 34 | */ |
||
| 35 | private $nr; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Picture. |
||
| 39 | * |
||
| 40 | * @var string|null |
||
| 41 | */ |
||
| 42 | private $picture; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the number. |
||
| 46 | * |
||
| 47 | 15 | * @return int|null Returns the number. |
|
| 48 | 15 | */ |
|
| 49 | public function getNr(): ?int { |
||
| 50 | return $this->nr; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the picture. |
||
| 55 | * |
||
| 56 | 15 | * @return string|null Returns the picture. |
|
| 57 | 15 | */ |
|
| 58 | public function getPicture(): ?string { |
||
| 59 | return $this->picture; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Set the number. |
||
| 64 | * |
||
| 65 | * @param int|null $nr The number. |
||
| 66 | 25 | * @return VideoPicture Returns this video picture. |
|
| 67 | 25 | */ |
|
| 68 | 25 | public function setNr(?int $nr): VideoPicture { |
|
| 69 | $this->nr = $nr; |
||
| 70 | return $this; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Set the picture. |
||
| 75 | * |
||
| 76 | * @param string|null $picture The picture. |
||
| 77 | 25 | * @return VideoPicture Returns this picture. |
|
| 78 | 25 | */ |
|
| 79 | 25 | public function setPicture(?string $picture): VideoPicture { |
|
| 82 | } |
||
| 83 | } |
||
| 84 |