AcmeRepo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 23
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getAcme() 0 3 1
1
<?php
2
3
namespace SimpleDIC\Dummy;
4
5
class AcmeRepo
6
{
7
    /**
8
     * @var Acme
9
     */
10
    private $acme;
11
12
    /**
13
     * AcmeRepo constructor.
14
     *
15
     * @param Acme $acme
16
     */
17
    public function __construct(Acme $acme)
18
    {
19
        $this->acme = $acme;
20
    }
21
22
    /**
23
     * @return Acme
24
     */
25
    public function getAcme()
26
    {
27
        return $this->acme;
28
    }
29
}
30