ApiReflection::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: claudio
5
 * Date: 17/09/15
6
 * Time: 14.02
7
 * This program is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU General Public License
9
 * as published by the Free Software Foundation; either version 2
10
 * of the License, or (at your option) any later version.
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 */
19
20
namespace it\thecsea\api_reflection;
21
22
/**
23
 * Class ApiReflection
24
 * @package it\thecsea\api_reflection
25
 * @author Claudio Cardinale <[email protected]>
26
 * @copyright 2015 ClaudioCardinale
27
 * @version 1.0.0
28
 */
29
class ApiReflection
30
{
31
    /**
32
     * @var Object
33
     */
34
    private $defaultInstance;
35
36
    /**
37
     * ApiReflection constructor.
38
     * @param Object $defaultInstance instance used as default in every parsing if is not spceified another instance
39
     */
40
    public function __construct($defaultInstance = null)
41
    {
42
        $this->defaultInstance = $defaultInstance;
43
    }
44
45
46
    /**
47
     * @return Object
48
     */
49
    public function getDefaultInstance()
50
    {
51
        return $this->defaultInstance;
52
    }
53
54
    /**
55
     * @param Object $defaultInstance
56
     */
57
    public function setDefaultInstance($defaultInstance)
58
    {
59
        $this->defaultInstance = $defaultInstance;
60
    }
61
}