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

CollectionConfiguratorTrait::resolve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 2
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by Vitaly Iegorov <[email protected]>.
4
 * on 17.08.16 at 09:19
5
 */
6
namespace samsonframework\container\collection\configurator;
7
use samsonframework\container\metadata\ClassMetadata;
8
9
/**
10
 * Class CollectionConfiguratorTrait
11
 *
12
 * @author Vitaly Iegorov <[email protected]>
13
 */
14
trait CollectionConfiguratorTrait
15
{
16
    /**
17
     * Get collection configurator marker.
18
     *
19
     * @return string Collection configurator key
20
     */
21
    public static function getMarker()
22
    {
23
        // Get collection configurator key as its lowered class name
24
        return strtolower(substr(get_called_class(), strrpos(get_called_class(), '\\') + 1));
25
    }
26
27
    /**
28
     * Generic collection configurator data resolver.
29
     *
30
     * @param mixed $data Data for resolving
31
     */
32
    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...
33
    {
34
35
    }
36
}
37