ReflectionObject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace BestServedCold\Reflection;
4
5
/**
6
 * Class ReflectionObject
7
 *
8
 * @package   BestServedCold\PhalueObjects\Utility\Reflection
9
 * @author    Adam Lewis <[email protected]>
10
 * @copyright Copyright (c) 2015 Best Served Cold Media Limited
11
 * @license   http://http://opensource.org/licenses/GPL-3.0 GPL License
12
 * @link      http://bestservedcold.com
13
 * @since     1.0.0
14
 * @version   1.0.0
15
 */
16
class ReflectionObject extends AbstractReflection implements ReflectionInterface
17
{
18
    /**
19
     * @param object $object
20
     */
21 3
    public function __construct($object)
22
    {
23 3
        $this->object = $object;
24 3
        $this->class = (string) get_class($object);
25 3
    }
26
}
27