Test Setup Failed
Push — master ( d89a8a...fb45e4 )
by Dayle
45s
created

Trial::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
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
    public function __construct($name, callable $callback, $context)
23
    {
24
        $this->name = $name;
25
        $this->callback = $callback;
26
        $this->context = $context;
27
    }
28
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    public function getCallback()
35
    {
36
        return $this->callback;
37
    }
38
39
    public function getContext()
40
    {
41
        return $this->context;
42
    }
43
}
44