ReflectionFile   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 21
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Composite Utils package.
4
 *
5
 * (c) Emily Shepherd <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the
8
 * LICENSE.md file that was distributed with this source code.
9
 *
10
 * @package spaark/composite-utils
11
 * @author Emily Shepherd <[email protected]>
12
 * @license MIT
13
 */
14
15
namespace Spaark\CompositeUtils\Model\Reflection;
16
17
use Spaark\CompositeUtils\Model\Collection\Map\HashMap;
18
19
/**
20
 * Represents a file
21
 *
22
 * @property-read HashMap $namespaces
23
 */
24
class ReflectionFile extends Reflector
25
{
26
    /**
27
     * The namespaces which are declared within this file
28
     *
29
     * Normally, and with well formatted code, there should only really
30
     * ever be one of these
31
     *
32
     * @var HashMap
33
     * @readable
34
     */
35
    protected $namespaces;
36
37
    /**
38
     * Creates the ReflectionFile by initializing its HashMap property
39
     */
40 22
    public function __construct()
41
    {
42 22
        $this->namespaces = new HashMap();
43 22
    }
44
}
45