Completed
Pull Request — master (#27)
by
unknown
02:00
created

Trial::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Scientist;
4
5
class Trial
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $name;
11
12
    /**
13
     * @var callable
14
     */
15
    protected $callback;
16
17
    /**
18
     * @var mixed
19
     */
20
    protected $context;
21
22
    /**
23
     * @var array
24
     */
25
    protected $arguments = [];
26
27
    public function __construct($name, callable $callback, $context, array $arguments = [])
28
    {
29
        $this->name = $name;
30
        $this->callback = $callback;
31
        $this->context = $context;
32
        $this->arguments = $arguments;
33
    }
34
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    public function getCallback()
41
    {
42
        return $this->callback;
43
    }
44
45
    public function getContext()
46
    {
47
        return $this->context;
48
    }
49
50
    public function getArguments(): array
51
    {
52
        return $this->arguments;
53
    }
54
}
55