AdminReady   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getView() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Events;
6
7
use Opulence\Views\IView;
8
9
class AdminReady
10
{
11
    private IView $view;
12
13
    /**
14
     * AdminReady constructor.
15
     *
16
     * @param IView $view
17
     */
18
    public function __construct(IView $view)
19
    {
20
        $this->view = $view;
21
    }
22
23
    /**
24
     * @return IView
25
     */
26
    public function getView(): IView
27
    {
28
        return $this->view;
29
    }
30
}
31