| 1 | <?php |
||
| 21 | abstract class AbstractBadge implements BadgeInterface { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Content. |
||
| 25 | * |
||
| 26 | * @var string|null |
||
| 27 | */ |
||
| 28 | private $content; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Pill. |
||
| 32 | * |
||
| 33 | * @var bool|null |
||
| 34 | */ |
||
| 35 | private $pill; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Type. |
||
| 39 | * |
||
| 40 | * @var string|null |
||
| 41 | */ |
||
| 42 | private $type; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Constructor. |
||
| 46 | * |
||
| 47 | * @param string|null type. |
||
| 48 | */ |
||
| 49 | protected function __construct(?string $type) { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritDoc} |
||
| 55 | */ |
||
| 56 | public function getContent(): ?string { |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritDoc} |
||
| 62 | */ |
||
| 63 | public function getPill(): ?bool { |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritDoc} |
||
| 69 | */ |
||
| 70 | public function getPrefix(): ?string { |
||
| 73 | |||
| 74 | /** |
||
| 75 | * {@inheritDoc} |
||
| 76 | */ |
||
| 77 | public function getType(): ?string { |
||
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritDoc} |
||
| 83 | */ |
||
| 84 | public function setContent(?string $content): BadgeInterface { |
||
| 88 | |||
| 89 | /** |
||
| 90 | * {@inheritDoc} |
||
| 91 | */ |
||
| 92 | public function setPill(?bool $pill): BadgeInterface { |
||
| 96 | |||
| 97 | /** |
||
| 98 | * {@inheritDoc} |
||
| 99 | */ |
||
| 100 | public function setType(?string $type): BadgeInterface { |
||
| 104 | } |
||
| 105 |