Passed
Push — master ( 46bec3...dbfdbf )
by Alex
04:19
created

setDocumentation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl;
4
5
use AlgoWeb\ODataMetadata\IsOKTraits\IsOKToolboxTrait;
6
7
trait GEmptyElementExtensibilityTrait
8
{
9
    use IsOKToolboxTrait;
10
11
    /**
12
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
13
     */
14
    private $documentation = null;
15
16
    /**
17
     * Gets as documentation
18
     *
19
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType
20
     */
21
    public function getDocumentation()
22
    {
23
        return $this->documentation;
24
    }
25
26
    /**
27
     * Sets a new documentation
28
     *
29
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
30
     * @return self
31
     */
32
    public function setDocumentation(TDocumentationType $documentation)
33
    {
34
        $this->documentation = $documentation;
35
        return $this;
36
    }
37
38
    public function isExtensibilityElementOK(&$msg = null)
39
    {
40
        if ($this->isObjectNullOrOK($this->documentation, $msg)) {
41
            return false;
42
        }
43
        return true;
44
    }
45
}