| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | abstract class Resolver |
||
| 19 | { |
||
| 20 | private $app; |
||
| 21 | |||
| 22 | 75 | public function __construct(Container $app) |
|
| 23 | { |
||
| 24 | 75 | $this->app = $app; |
|
| 25 | 75 | } |
|
| 26 | |||
| 27 | abstract protected function authorizer(): string; |
||
| 28 | |||
| 29 | 75 | public function configure() |
|
| 30 | { |
||
| 31 | 75 | $this->container()->bind(AuthorizerContract::class, $this->authorizer()); |
|
| 32 | 75 | $this->configureEvents(); |
|
| 33 | 75 | } |
|
| 34 | |||
| 35 | 75 | protected function listens(): array |
|
| 38 | } |
||
| 39 | |||
| 40 | 75 | protected function container(): Container |
|
| 41 | { |
||
| 42 | 75 | return $this->app; |
|
| 43 | } |
||
| 44 | |||
| 45 | 75 | private function configureEvents(): void |
|
| 50 | } |
||
| 51 | } |
||
| 52 | 75 | } |
|
| 53 | } |
||
| 54 |