Completed
Push — master ( 0d7c83...11b403 )
by Vitaly
02:57
created

Properties   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A resolve() 0 5 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\container\collection\configurator;
9
10
use samsonframework\container\collection\CollectionKeyConfiguratorInterface;
11
use samsonframework\container\metadata\ClassMetadata;
12
use samsonframework\container\metadata\PropertyMetadata;
13
14
/**
15
 * Instance/Service properties collection configurator class.
16
 *
17
 * @author Vitaly Egorov <[email protected]>
18
 */
19
class Properties implements CollectionKeyConfiguratorInterface
20
{
21
    use CollectionConfiguratorTrait;
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function resolve(array $data, ClassMetadata $classMetadata)
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $classMetadata is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
    {
28
        // Parse properties from metadata
29
        return new PropertyMetadata();
0 ignored issues
show
Bug introduced by
The call to PropertyMetadata::__construct() misses a required argument $classMetadata.

This check looks for function calls that miss required arguments.

Loading history...
30
    }
31
}
32