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

ModuleList::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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
}