Completed
Pull Request — develop (#430)
by Narcotic
294:39 queued 229:38
created

SchemaAdditionalProperties   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 39
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProperties() 0 4 1
A setProperties() 0 4 1
1
<?php
2
/**
3
 * Graviton SchemaAdditionalProperties Document
4
 */
5
6
namespace Graviton\SchemaBundle\Document;
7
8
use \Doctrine\Common\Collections\ArrayCollection;
9
10
/**
11
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
12
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
13
 * @link     http://swisscom.ch
14
 */
15
class SchemaAdditionalProperties
16
{
17
    /**
18
     * @var Schema|boolean
19
     */
20
    protected $properties;
21
22
    /**
23
     * Constructor
24
     *
25
     * @param Schema|boolean $properties either a boolean or a Schema object
26
     */
27
    public function __construct($properties)
28
    {
29
        $this->properties = $properties;
30
    }
31
32
    /**
33
     * gets properties
34
     *
35
     * @return Schema|boolean properties
36
     */
37
    public function getProperties()
38
    {
39
        return $this->properties;
40
    }
41
42
    /**
43
     * sets properties
44
     *
45
     * @param Schema|boolean $properties properties
46
     *
47
     * @return void
48
     */
49
    public function setProperties($properties)
50
    {
51
        $this->properties = $properties;
52
    }
53
}
54