Passed
Push — master ( 4f7966...46bec3 )
by Alex
04:29
created

TAssociationSetModificationFunctionMappingPropertyGroup   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 0
dl 0
loc 41
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEndProperty() 0 4 1
A setEndProperty() 0 5 1
A isAssociationSetModificationFunctionMappingOK() 0 7 3
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\Groups;
4
5
use AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TModificationFunctionMappingEndPropertyType;
6
7
trait TAssociationSetModificationFunctionMappingPropertyGroup
8
{
9
    //Grouping for entity type function mappings
10
11
    /**
12
     * @property \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TModificationFunctionMappingEndPropertyType
13
     * $endProperty
14
     */
15
    private $endProperty = null;
16
17
    /**
18
     * Gets as endProperty
19
     *
20
     * @return \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TModificationFunctionMappingEndPropertyType
21
     */
22
    public function getEndProperty()
23
    {
24
        return $this->endProperty;
25
    }
26
27
    /**
28
     * Sets a new endProperty
29
     *
30
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TModificationFunctionMappingEndPropertyType
31
     * $endProperty
32
     * @return self
33
     */
34
    public function setEndProperty(TModificationFunctionMappingEndPropertyType $endProperty)
35
    {
36
        $this->endProperty = $endProperty;
37
        return $this;
38
    }
39
40
    public function isAssociationSetModificationFunctionMappingOK(&$msg = null)
41
    {
42
        if (null != $this->endProperty && !$this->endProperty->isOK($msg)) {
43
            return false;
44
        }
45
        return true;
46
    }
47
}
48