PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/Framework/FieldsAPI/Section.php +3 -24 2.30.04.16.9 View file →
@@ -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 }