Action::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace BeyondCode\DuskDashboard;
4
5
class Action
6
{
7
    protected $name;
8
9
    protected $arguments;
10
11
    protected $html;
12
13
    protected $previousHtml;
14
15
    protected $path;
16
17
    public function __construct(string $name, array $arguments, string $html, string $path)
18
    {
19
        $this->name = $name;
20
21
        $this->arguments = $arguments;
22
23
        $this->html = $html;
24
25
        $this->path = $path;
26
    }
27
28
    public function getName()
29
    {
30
        return $this->name;
31
    }
32
33
    public function getHtml()
34
    {
35
        return $this->html;
36
    }
37
38
    public function setPreviousHtml(?string $html)
39
    {
40
        $this->previousHtml = $html;
41
    }
42
43
    public function getPreviousHtml()
44
    {
45
        return $this->previousHtml;
46
    }
47
48
    public function getArguments()
49
    {
50
        return $this->arguments;
51
    }
52
53
    public function getPath()
54
    {
55
        return $this->path;
56
    }
57
}
58