Test Failed
Push — master ( 8a7ae2...79eb97 )
by Chris
06:09
created

ScreenAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 32
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Leonidas\Library\Admin\Screen;
4
5
use Leonidas\Contracts\Admin\Screen\ScreenActionInterface;
6
7
class ScreenAction implements ScreenActionInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $base;
13
14
    /**
15
     * @var callable
16
     */
17
    protected $callback;
18
19
    /**
20
     * @var array
21
     */
22
    protected $screens;
23
24
    /**
25
     * ajax actions that callback
26
     * @var array
27
     */
28
    protected $actions;
29
30
    /**
31
     *
32
     */
33
    protected function __construct($base, array $screens, callable $callback, array $actions = [])
34
    {
35
        $this->base = (array) $base;
36
        $this->screens = $screens;
37
        $this->callback = $callback;
38
        $this->actions = $actions;
39
    }
40
}
41