| Total Complexity | 8 |
| Total Lines | 76 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BannerTranslation extends AbstractTranslation implements BannerTranslationInterface |
||
| 12 | { |
||
| 13 | use TimestampableTrait; |
||
| 14 | |||
| 15 | /** @var int|null */ |
||
| 16 | private $id; |
||
| 17 | |||
| 18 | /** @var File */ |
||
| 19 | private $imageFile; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | private $imageName; |
||
| 23 | |||
| 24 | /** @var string|null */ |
||
| 25 | private $url; |
||
| 26 | |||
| 27 | public function __construct() |
||
| 28 | { |
||
| 29 | $this->createdAt = new \DateTime(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function getId(): ?int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function setImageFile(File $file): void |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getImageFile(): ?File |
||
| 54 | { |
||
| 55 | return $this->imageFile; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function setImageName($imageName): void |
||
| 62 | { |
||
| 63 | $this->imageName = $imageName; |
||
| 64 | } |
||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function getImageName(): string |
||
| 69 | { |
||
| 70 | return $this->imageName; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function getUrl(): ?string |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritdoc} |
||
| 83 | */ |
||
| 84 | public function setUrl($url): void |
||
| 89 |