| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class SimpleScoper implements Scoper |
||
| 20 | { |
||
| 21 | private $scoper; |
||
| 22 | private $prefix; |
||
| 23 | private $whitelist; |
||
| 24 | private $patchers; |
||
| 25 | |||
| 26 | public function __construct(PhpScoper $scoper, string $prefix, array $whitelist, array $patchers) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function scope(string $filePath, string $contents): string |
||
| 38 | { |
||
| 39 | return $this->scoper->scope( |
||
| 40 | $filePath, |
||
| 41 | $contents, |
||
| 42 | $this->prefix, |
||
| 43 | $this->patchers, |
||
| 44 | $this->whitelist |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function getWhitelist(): array |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function getPrefix(): string |
||
| 62 | } |
||
| 63 | } |
||
| 64 |