AllowMultiple.php
4 years ago
HasDefaultValue.php
4 years ago
HasEmailTag.php
4 years ago
HasHelpText.php
4 years ago
HasLabel.php
4 years ago
HasMaxLength.php
4 years ago
HasMinLength.php
4 years ago
HasName.php
4 years ago
HasNodes.php
4 years ago
HasOptions.php
4 years ago
HasPlaceholder.php
4 years ago
HasType.php
4 years ago
HasVisibilityConditions.php
4 years ago
InsertNode.php
4 years ago
IsReadOnly.php
4 years ago
IsRequired.php
4 years ago
MoveNode.php
4 years ago
MoveNodeProxy.php
4 years ago
NameCollision.php
4 years ago
RemoveNode.php
4 years ago
SerializeAsJson.php
4 years ago
ShowInReceipt.php
4 years ago
StoreAsMeta.php
4 years ago
ValidationRules.php
4 years ago
WalkNodes.php
4 years ago
HasPlaceholder.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\FieldsAPI\Concerns; |
| 4 | |
| 5 | trait HasPlaceholder { |
| 6 | |
| 7 | /** @var string*/ |
| 8 | protected $placeholder; |
| 9 | |
| 10 | /** |
| 11 | * Set the placeholder value. |
| 12 | * |
| 13 | * @param string $placeholder |
| 14 | * |
| 15 | * @return $this |
| 16 | */ |
| 17 | public function placeholder( $placeholder ) { |
| 18 | $this->placeholder = $placeholder; |
| 19 | return $this; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Get the placeholder value. |
| 24 | * |
| 25 | * @return string |
| 26 | */ |
| 27 | public function getPlaceholder() { |
| 28 | return $this->placeholder; |
| 29 | } |
| 30 | } |
| 31 |