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

SchemaAdditionalProperties::setProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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