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
FieldDefaultValue.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\FormField; |
| 4 | |
| 5 | trait FieldDefaultValue { |
| 6 | |
| 7 | /** @var string */ |
| 8 | protected $defaultValue; |
| 9 | |
| 10 | /** |
| 11 | * @param string $defaultValue |
| 12 | * @return $this |
| 13 | */ |
| 14 | public function defaultValue( $defaultValue ) { |
| 15 | $this->defaultValue = $defaultValue; |
| 16 | return $this; |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * @return string |
| 21 | */ |
| 22 | public function getDefaultValue() { |
| 23 | return $this->defaultValue; |
| 24 | } |
| 25 | } |
| 26 |