| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class FeatureColumnsItem extends AbstractFeatureItem implements FileInterface |
||
| 22 | { |
||
| 23 | use FileTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @ORM\Column() |
||
| 27 | * @Groups({"component", "content"}) |
||
| 28 | * @var null|string |
||
| 29 | */ |
||
| 30 | protected $description; |
||
| 31 | |||
| 32 | 4 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 33 | { |
||
| 34 | 4 | $metadata->addPropertyConstraint( |
|
| 35 | 4 | 'filePath', |
|
| 36 | 4 | new Assert\Image() |
|
| 37 | ); |
||
| 38 | 4 | } |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return null|string |
||
| 42 | */ |
||
| 43 | 1 | public function getDescription(): ?string |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param null|string $description |
||
| 50 | */ |
||
| 51 | 1 | public function setDescription(?string $description): void |
|
| 54 | 1 | } |
|
| 55 | } |
||
| 56 |