ServiceExample   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLorem() 0 3 1
1
<?php
2
/**
3
 * Copyright (C) 2018 Gerrit Addiks.
4
 * This package (including this file) was released under the terms of the GPL-3.0.
5
 * You should have received a copy of the GNU General Public License along with this program.
6
 * If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
7
 * @license GPL-3.0
8
 * @author Gerrit Addiks <[email protected]>
9
 */
10
11
namespace Addiks\RDMBundle\Tests\Hydration;
12
13
class ServiceExample
14
{
15
16
    public function __construct(string $lorem, int $ipsum)
17
    {
18
        $this->lorem = $lorem;
19
        $this->ipsum = $ipsum;
20
    }
21
22
    /**
23
     * @var string
24
     */
25
    public $lorem;
26
27
    /**
28
     * @var integer
29
     */
30
    public $ipsum;
31
32
    public function getLorem($dolor = "")
33
    {
34
        return $this->lorem . $dolor;
35
    }
36
37
}
38