| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class VendorTranslation extends AbstractTranslation implements VendorTranslationInterface |
||
| 11 | { |
||
| 12 | use TimestampableTrait; |
||
| 13 | |||
| 14 | /** @var int|null */ |
||
| 15 | protected $id; |
||
| 16 | |||
| 17 | /** @var string|null */ |
||
| 18 | private $description; |
||
| 19 | |||
| 20 | public function __construct() |
||
| 21 | { |
||
| 22 | $this->createdAt = new \DateTime(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getId(): ?int |
||
| 29 | { |
||
| 30 | return $this->id; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function getDescription(): ?string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function setDescription(?string $description): void |
||
| 49 |