Passed
Pull Request — master (#61)
by Tim
02:17
created

SimpleRestrictionModelTrait::getSimpleType()   A

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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML\xs;
6
7
/**
8
 * Trait grouping common functionality for elements that are part of the xs:facets group.
9
 *
10
 * @package simplesamlphp/xml-common
11
 */
12
trait SimpleRestrictionModelTrait
13
{
14
    use FacetsTrait;
15
16
    /**
17
     * The simpleType.
18
     *
19
     * @var \SimpleSAML\XMLSchema\XML\xs\LocalSimpleType|null
20
     */
21
    protected ?LocalSimpleType $simpleType = null;
22
23
24
    /**
25
     * Collect the value of the simpleType-property
26
     *
27
     * @return \SimpleSAML\XMLSchema\XML\xs\LocalSimpleType|null
28
     */
29
    public function getSimpleType(): ?LocalSimpleType
30
    {
31
        return $this->simpleType;
32
    }
33
34
35
    /**
36
     * Set the value of the simpleType-property
37
     *
38
     * @param \SimpleSAML\XMLSchema\XML\xs\LocalSimpleType|null $simpleType
39
     */
40
    protected function setSimpleType(?LocalSimpleType $simpleType = null): void
41
    {
42
        $this->simpleType = $simpleType;
43
    }
44
}
45