AbstractAccessor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPhpDocHint() 0 6 2
1
<?php
2
3
namespace Saxulum\Accessor\Accessors;
4
5
use Saxulum\Accessor\AccessorInterface;
6
use Saxulum\Accessor\Prop;
7
8
abstract class AbstractAccessor implements AccessorInterface
9
{
10
    /**
11
     * @param  Prop   $prop
12
     * @param  string $namespace
13
     * @return string
14
     */
15
    protected static function getPhpDocHint(Prop $prop, $namespace)
16
    {
17
        $hint = $prop->getPhpDocHint($namespace);
18
19
        return '' !== $hint ? $hint . ' ' : '';
20
    }
21
}
22