Definition::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * This file is part of graze/unicontroller-client.
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md
11
 * @link https://github.com/graze/unicontroller-client
12
 */
13
namespace Graze\UnicontrollerClient\ClassGenerator\Definition;
14
15
use Graze\UnicontrollerClient\ClassGenerator\Definition\DefinitionProperty;
16
17
class Definition
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
24
    /**
25
     * @var DefinitionProperty[]
26
     */
27
    private $properties;
28
29
    /**
30
     * @param string $name
31
     * @param array $properties
32
     */
33
    public function __construct($name, array $properties)
34
    {
35
        $this->name = $name;
36
        $this->properties = $properties;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @return DefinitionProperty[]
49
     */
50
    public function getProperties()
51
    {
52
        return $this->properties;
53
    }
54
}
55