Completed
Push — feature/EVO-4972-incremental-d... ( 3eef27...496e1f )
by Narcotic
43:29 queued 37:56
created

SchemaAdditionalProperties   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

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
ccs 8
cts 8
cp 1
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 2
    public function __construct($properties)
26
    {
27 2
        $this->setProperties($properties);
28 2
    }
29
30
    /**
31
     * gets properties
32
     *
33
     * @return Schema|boolean properties
34
     */
35 2
    public function getProperties()
36
    {
37 2
        return $this->properties;
38
    }
39
40
    /**
41
     * sets properties
42
     *
43
     * @param Schema|boolean $properties properties
44
     *
45
     * @return void
46
     */
47 2
    public function setProperties($properties)
48
    {
49 2
        $this->properties = $properties;
50 2
    }
51
}
52