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

ServiceProvider::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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