Completed
Pull Request — develop (#725)
by Serg
15:29 queued 03:36
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
1
<?php namespace EvolutionCMS;
2
3
use EvolutionCMS\Interfaces\ServiceProviderInterface;
4
5
class ServiceProvider implements ServiceProviderInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * Constructor for the container argument.
14
     *
15
     * @param string $name The service name.
16
     */
17
    public function __construct($name)
18
    {
19
        $this->name = $name;
20
    }
21
22
    /**
23
     * Retrieve the service name.
24
     *
25
     * @return string The service name.
26
     */
27
    public function getName()
28
    {
29
        return $this->name;
30
    }
31
}
32