Completed
Pull Request — master (#10)
by Harry
06:44
created

FakeConstructable   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 47
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getA() 0 4 1
A getB() 0 4 1
A getC() 0 4 1
1
<?php
2
/**
3
 * This file is part of graze/data-file
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/data-file/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/data-file
12
 */
13
14
namespace Graze\DataFile\Test\Helper\Builder;
15
16
class FakeConstructable
17
{
18
    /** @var mixed|null */
19
    private $a;
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $a. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
20
    /** @var mixed|null */
21
    private $b;
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $b. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
22
    /** @var mixed|null */
23
    private $c;
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $c. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
24
25
    /**
26
     * FakeConstructable constructor.
27
     *
28
     * @param mixed|null $a
29
     * @param mixed|null $b
30
     * @param mixed|null $c
31
     */
32
    public function __construct($a = null, $b = null, $c = null)
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $a. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
Comprehensibility introduced by
Avoid variables with short names like $b. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
Comprehensibility introduced by
Avoid variables with short names like $c. Configured minimum length is 2.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
33
    {
34
        $this->a = $a;
35
        $this->b = $b;
36
        $this->c = $c;
37
    }
38
39
    /**
40
     * @return mixed|null
41
     */
42
    public function getA()
43
    {
44
        return $this->a;
45
    }
46
47
    /**
48
     * @return mixed|null
49
     */
50
    public function getB()
51
    {
52
        return $this->b;
53
    }
54
55
    /**
56
     * @return mixed|null
57
     */
58
    public function getC()
59
    {
60
        return $this->c;
61
    }
62
}
63