| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class PermissionsHandler implements PermissionsHandlerInterface |
||
| 18 | { |
||
| 19 | /** @var string */ |
||
| 20 | protected $definitionsPath; |
||
| 21 | |||
| 22 | /** @var array */ |
||
| 23 | protected $modules; |
||
| 24 | |||
| 25 | /** @var Finder */ |
||
| 26 | protected $finder; |
||
| 27 | |||
| 28 | /** @var Parser */ |
||
| 29 | protected $parser; |
||
| 30 | |||
| 31 | /** @var array */ |
||
| 32 | protected $permissions; |
||
| 33 | |||
| 34 | 5 | public function __construct($definitionsPath) |
|
| 41 | 5 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 5 | public function getPermissions() |
|
| 47 | { |
||
| 48 | 5 | return $this->permissions; |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Builds the list of currently active modules with their permissions. |
||
| 53 | */ |
||
| 54 | 5 | protected function buildPermissionsYaml() |
|
| 68 | 5 | } |
|
| 69 | } |
||
| 70 |