| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class FeatureTextList extends AbstractFeature |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @Groups({"component", "content"}) |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $columns = 3; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @Groups({"component", "content"}) |
||
| 28 | * @var null|string |
||
| 29 | */ |
||
| 30 | protected $title; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return FeatureItemInterface |
||
| 34 | */ |
||
| 35 | public function createItem(): FeatureItemInterface |
||
| 36 | { |
||
| 37 | return new FeatureTextListItem(); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getColumns(): int |
||
| 44 | { |
||
| 45 | return $this->columns; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param int $columns |
||
| 50 | */ |
||
| 51 | public function setColumns(int $columns): void |
||
| 52 | { |
||
| 53 | $this->columns = $columns; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return null|string |
||
| 58 | */ |
||
| 59 | public function getTitle(): ?string |
||
| 60 | { |
||
| 61 | return $this->title; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param null|string $title |
||
| 66 | */ |
||
| 67 | public function setTitle(?string $title): void |
||
| 70 | } |
||
| 71 | } |
||
| 72 |