FieldAttributes.php
5 years ago
FieldDefaultValue.php
5 years ago
FieldEmailTag.php
5 years ago
FieldHelpText.php
5 years ago
FieldLabel.php
5 years ago
FieldOptions.php
5 years ago
FieldReadOnly.php
5 years ago
FieldReceipt.php
5 years ago
FieldRequired.php
5 years ago
FieldStoreAsMeta.php
5 years ago
FieldTypes.php
5 years ago
FieldLabel.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\FormField; |
| 4 | |
| 5 | trait FieldLabel { |
| 6 | |
| 7 | /** @var string */ |
| 8 | protected $label; |
| 9 | |
| 10 | /** |
| 11 | * @param string $label |
| 12 | * @return $this |
| 13 | */ |
| 14 | public function label( $label ) { |
| 15 | $this->label = $label; |
| 16 | return $this; |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * @return string |
| 21 | */ |
| 22 | public function getLabel() { |
| 23 | return $this->label; |
| 24 | } |
| 25 | } |
| 26 |