AllowMultiple.php
4 years ago
HasDefaultValue.php
4 years ago
HasDescription.php
2 years ago
HasEmailTag.php
3 years ago
HasHelpText.php
4 years ago
HasLabel.php
3 years ago
HasMaxLength.php
3 years ago
HasMinLength.php
3 years ago
HasName.php
3 years ago
HasNodes.php
3 years ago
HasOptions.php
4 years ago
HasPersistence.php
2 years ago
HasPlaceholder.php
4 years ago
HasType.php
3 years ago
HasVisibilityConditions.php
2 years ago
InsertNode.php
3 years ago
IsReadOnly.php
4 years ago
IsRequired.php
3 years ago
Macroable.php
4 years ago
MoveNode.php
3 years ago
MoveNodeProxy.php
4 years ago
NameCollision.php
2 years ago
RemoveNode.php
2 years ago
SerializeAsJson.php
3 years ago
ShowInAdmin.php
3 years ago
ShowInReceipt.php
2 years ago
TapNode.php
3 years ago
WalkNodes.php
4 years ago
HasLabel.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\Concerns; |
| 4 | |
| 5 | trait HasLabel |
| 6 | { |
| 7 | /** @var string */ |
| 8 | protected $label; |
| 9 | |
| 10 | /** |
| 11 | * @since 2.24.0 add types |
| 12 | */ |
| 13 | public function label(string $label): self |
| 14 | { |
| 15 | $this->label = $label; |
| 16 | |
| 17 | return $this; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * @since 2.24.0 add types |
| 22 | * |
| 23 | * @return string|null |
| 24 | */ |
| 25 | public function getLabel() |
| 26 | { |
| 27 | return $this->label; |
| 28 | } |
| 29 | } |
| 30 |