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
3 years ago
TapNode.php
3 years ago
WalkNodes.php
4 years ago
HasDescription.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\Concerns; |
| 4 | |
| 5 | /** |
| 6 | * @since 2.32.0 |
| 7 | */ |
| 8 | trait HasDescription |
| 9 | { |
| 10 | |
| 11 | /** @var string|null */ |
| 12 | protected $description; |
| 13 | |
| 14 | /** |
| 15 | * @since 2.32.0 |
| 16 | */ |
| 17 | public function description(string $description): self |
| 18 | { |
| 19 | $this->description = $description; |
| 20 | |
| 21 | return $this; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @since 2.32.0 |
| 26 | * |
| 27 | * @return string|null |
| 28 | */ |
| 29 | public function getDescription() |
| 30 | { |
| 31 | return $this->description; |
| 32 | } |
| 33 | } |
| 34 |