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