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

Definition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 6 2
A findForManager() 0 2 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