| Total Complexity | 7 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Project { |
||
| 11 | /** |
||
| 12 | * The list of descriptions for the modules in the project. |
||
| 13 | * |
||
| 14 | * @var \Drupal\qa\System\Module[] |
||
| 15 | */ |
||
| 16 | public $modules = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The project name. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Project constructor. |
||
| 27 | * |
||
| 28 | * @param string $name |
||
| 29 | * The project name. |
||
| 30 | */ |
||
| 31 | public function __construct(string $name) { |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Add a module description to the project. |
||
| 37 | * |
||
| 38 | * @param \Drupal\qa\System\Module $module |
||
| 39 | * The description of the module to add. |
||
| 40 | */ |
||
| 41 | public function addModule(Module $module) { |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Sort projects within the module. |
||
| 47 | */ |
||
| 48 | public function sort() { |
||
| 49 | ksort($this->modules); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Is the project required ? |
||
| 54 | * |
||
| 55 | * @return false |
||
| 56 | * Is it ? |
||
| 57 | */ |
||
| 58 | public function isRequired() { |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Count the enabled modules in the project. |
||
| 64 | * |
||
| 65 | * @return int |
||
| 66 | * The count. |
||
| 67 | */ |
||
| 68 | public function useCount() { |
||
| 77 | } |
||
| 78 | |||
| 80 |