| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | trait PrefixTrait |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $prefix = ''; |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * Set the key prefix |
||
| 31 | * |
||
| 32 | * @param string $prefix |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | 22 | protected function setPrefixOption(string $prefix): void |
|
| 36 | { |
||
| 37 | 22 | $this->prefix = $prefix; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the key prefix |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 22 | protected function getPrefixOption(): string |
|
| 48 | } |
||
| 49 | } |
||
| 50 |