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

Trial   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A getCallback() 0 4 1
A getContext() 0 4 1
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