Passed
Push — master ( ca7167...276d5c )
by Fabian
06:10
created

ModuleList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getModuleList() 0 3 1
1
<?php
2
3
namespace Firegento\DevDashboard\ViewModel\Widget;
4
5
use Magento\Framework\View\Element\Block\ArgumentInterface;
6
use Magento\Framework\Module\ModuleListInterface;
7
8
class ModuleList implements ArgumentInterface
9
{
10
    private $moduleListInterface;
11
12
    public function __construct(ModuleListInterface $moduleListInterface)
13
    {
14
        $this->moduleListInterface = $moduleListInterface;
15
    }
16
17
    public function getModuleList()
18
    {
19
        return $this->moduleListInterface->getAll();
20
    }
21
}