Completed
Pull Request — develop (#455)
by Lucas
37:54 queued 31:44
created

SchemaAdditionalProperties   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 39
ccs 0
cts 12
cp 0
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
/**
9
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
10
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
11
 * @link     http://swisscom.ch
12
 */
13
class SchemaAdditionalProperties
14
{
15
    /**
16
     * @var Schema|boolean
17
     */
18
    protected $properties;
19
20
    /**
21
     * Constructor
22
     *
23
     * @param Schema|boolean $properties either a boolean or a Schema object
24
     */
25
    public function __construct($properties)
26
    {
27
        $this->setProperties($properties);
28
    }
29
30
    /**
31
     * gets properties
32
     *
33
     * @return Schema|boolean properties
34
     */
35
    public function getProperties()
36
    {
37
        return $this->properties;
38
    }
39
40
    /**
41
     * sets properties
42
     *
43
     * @param Schema|boolean $properties properties
44
     *
45
     * @return void
46
     */
47
    public function setProperties($properties)
48
    {
49
        $this->properties = $properties;
50
    }
51
}
52