| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | trait Sourceable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Determines where the text to convert from. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $source; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Sets the source. |
||
| 18 | * |
||
| 19 | * @param string $source |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public function source(string $source) |
||
| 23 | { |
||
| 24 | $this->source = $source; |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get text from source. |
||
| 31 | * @param string $data |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | protected function getTextFromSource(string $data): string |
||
| 41 | } |
||
| 42 | } |
||
| 43 |