| @@ -1,40 +1,19 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Give\Framework\FieldsAPI; |
| 4 | 4 | |
| 5 | -use Give\Framework\FieldsAPI\Concerns\HasLabel; | |
| 6 | 5 | |
| 7 | 6 | /** |
| 7 | + * @since 2.32.0 added description | |
| 8 | 8 | * @since 2.22.0 |
| 9 | 9 | */ |
| 10 | 10 | class Section extends Group |
| 11 | 11 | { |
| 12 | - use HasLabel; | |
| 12 | + use Concerns\HasLabel; | |
| 13 | + use Concerns\HasDescription; | |
| 13 | 14 | |
| 14 | 15 | /** |
| 15 | 16 | * @since 2.22.0 |
| 16 | 17 | */ |
| 17 | 18 | const TYPE = 'section'; |
| 18 | - | |
| 19 | - /** | |
| 20 | - * @var string | |
| 21 | - */ | |
| 22 | - protected $description; | |
| 23 | - | |
| 24 | - /** | |
| 25 | - * @since 2.22.0 | |
| 26 | - */ | |
| 27 | - public function description(string $description): self | |
| 28 | - { | |
| 29 | - $this->description = $description; | |
| 30 | - return $this; | |
| 31 | - } | |
| 32 | - | |
| 33 | - /** | |
| 34 | - * @since 2.22.0 | |
| 35 | - */ | |
| 36 | - public function getDescription(): string | |
| 37 | - { | |
| 38 | - return $this->description; | |
| 39 | - } | |
| 40 | 19 | } |