| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\Framework\FieldsAPI\Concerns; |
| 4 |
|
| 5 |
trait HasPlaceholder |
| 6 |
{ |
| 7 |
|
| 8 |
/** @var string */ |
| 9 |
protected $placeholder; |
| 10 |
|
| 11 |
/** |
| 12 |
* Set the placeholder value. |
| 13 |
* |
| 14 |
* @param string $placeholder |
| 15 |
* |
| 16 |
* @return $this |
| 17 |
*/ |
| 18 |
public function placeholder($placeholder) |
| 19 |
{ |
| 20 |
$this->placeholder = $placeholder; |
| 21 |
|
| 22 |
return $this; |
| 23 |
} |
| 24 |
|
| 25 |
/** |
| 26 |
* Get the placeholder value. |
| 27 |
* |
| 28 |
* @return string |
| 29 |
*/ |
| 30 |
public function getPlaceholder() |
| 31 |
{ |
| 32 |
return $this->placeholder; |
| 33 |
} |
| 34 |
} |
| 35 |
|