Passed
Push — master ( 81d3f9...4ab6f6 )
by Gabriel
11:06
created

Definition::name()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Utility;
4
5
/**
6
 * Class Definition
7
 * @package ByTIC\Models\SmartProperties\Utility
8
 */
9
class Definition
10
{
11
    /**
12
     * @param $definition
13
     * @return mixed|string|null
14
     */
15
    public static function name($definition)
16
    {
17
        if ($definition instanceof \ByTIC\Models\SmartProperties\Definitions\Definition) {
18
            return $definition->getName();
19
        }
20
        return (string)$definition;
21
    }
22
23
    public static function findForManager()
24
    {
25
26
    }
27
}
28