TestHelper::setTest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Pumpkin\Test;
3
4
/**
5
 * Class TestHelper
6
 * @package Pumpkin
7
 * @author Raphaël Lefebvre <[email protected]>
8
 */
9
abstract class TestHelper
0 ignored issues
show
Coding Style introduced by
TestHelper does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
10
{
11
    /**
12
     * @var Test
13
     */
14
    private $test;
15
16
    /**
17
     * Constructor.
18
     *
19
     * @param Test $test
20
     */
21 22
    public function __construct(Test $test)
22
    {
23 22
        $this->setTest($test);
24 22
    }
25
26
    /**
27
     * Getter of $test
28
     *
29
     * @return \Pumpkin\Test\Test
30
     */
31 22
    public function getTest()
32
    {
33 22
        return $this->test;
34
    }
35
36
    /**
37
     * Setter of $test
38
     *
39
     * @param Test $test
40
     */
41 22
    private function setTest(Test $test)
42
    {
43 22
        $this->test = $test;
44 22
    }
45
}
46