Completed
Push — master ( 7e3b96...cb9969 )
by Vitaly
03:03
created

Service   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 13
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toParameterMetadata() 0 4 1
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 27.07.2016
6
 * Time: 1:55.
7
 */
8
namespace samsonframework\containercollection\attribute;
9
10
use samsonframework\container\configurator\ParameterConfiguratorInterface;
11
use samsonframework\container\configurator\ServiceConfigurator;
12
use samsonframework\container\metadata\ParameterMetadata;
13
14
/**
15
 * Service attribute configurator class.
16
 *
17
 * @see    \samsonframework\container\configurator\ScopeConfigurator
18
 *
19
 * @author Vitaly Egorov <[email protected]>
20
 */
21
class Service extends ServiceConfigurator implements AttributeConfiguratorInterface, ParameterConfiguratorInterface
22
{
23
    /** @var string Configurator key */
24
    const KEY = 'service';
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function toParameterMetadata(ParameterMetadata $parameterMetadata)
30
    {
31
        $parameterMetadata->dependency = $this->serviceName;
32
    }
33
}
34