| 1 | <?php |
||
| 5 | trait Maskable |
||
| 6 | { |
||
| 7 | protected $maskPattern; |
||
| 8 | protected $maskPlaceholder; |
||
| 9 | |||
| 10 | 2 | public function mask(string $pattern, string $placeholder = '∗') |
|
| 17 | |||
| 18 | /** |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | 2 | public function getMaskPattern() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 2 | public function getMaskPlaceholder() |
|
| 33 | |||
| 34 | 3 | public function isMaskable() |
|
| 38 | } |
||
| 39 |