| Total Complexity | 5 | 
| Total Lines | 51 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 23 | final class SimpleScoper implements Scoper | ||
| 24 | { | ||
| 25 | private $scoper; | ||
| 26 | private $prefix; | ||
| 27 | private $whitelist; | ||
| 28 | private $patchers; | ||
| 29 | |||
| 30 | public function __construct(PhpScoper $scoper, string $prefix, Whitelist $whitelist, array $patchers) | ||
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 |      * {@inheritdoc} | ||
| 40 | */ | ||
| 41 | public function scope(string $filePath, string $contents): string | ||
| 42 |     { | ||
| 43 | return $this->scoper->scope( | ||
| 44 | $filePath, | ||
| 45 | $contents, | ||
| 46 | $this->prefix, | ||
| 47 | $this->patchers, | ||
| 48 | $this->whitelist | ||
| 49 | ); | ||
| 50 | } | ||
| 51 | |||
| 52 | /** | ||
| 53 |      * {@inheritdoc} | ||
| 54 | */ | ||
| 55 | public function changeWhitelist(Whitelist $whitelist): void | ||
| 56 |     { | ||
| 57 | $this->whitelist = $whitelist; | ||
| 58 | } | ||
| 59 | |||
| 60 | /** | ||
| 61 |      * {@inheritdoc} | ||
| 62 | */ | ||
| 63 | public function getWhitelist(): Whitelist | ||
| 66 | } | ||
| 67 | |||
| 68 | /** | ||
| 69 |      * {@inheritdoc} | ||
| 70 | */ | ||
| 71 | public function getPrefix(): string | ||
| 74 | } | ||
| 75 | } | ||
| 76 |