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

Properties::resolve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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