AbstractAccessor::getPhpDocHint()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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