Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

FunctionReferenceTrait::unsetFunctionReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\GExpressionGroupTraits;
3
4
/**
5
 * Trait representing the FunctionReference Component of  MetadataV3\edm\TCollectionExpressionType
6
 *
7
 *
8
 * XSD Type: GExpression
9
 */
10
trait FunctionReferenceTrait
11
{
12
    /**
13
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReferenceExpressionType[] $functionReference
14
     */
15
    private $functionReference = array(
16
        
17
    );
18
    
19
    /**
20
     * Adds as functionReference
21
     *
22
     * @return self
23
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReferenceExpressionType $functionReference
24
     */
25
    public function addToFunctionReference(TFunctionReferenceExpressionType $functionReference)
0 ignored issues
show
Bug introduced by
The type AlgoWeb\ODataMetadata\Me...ReferenceExpressionType was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
26
    {
27
        $this->functionReference[] = $functionReference;
28
        return $this;
29
    }
30
31
    /**
32
     * isset functionReference
33
     *
34
     * @param scalar $index
35
     * @return boolean
36
     */
37
    public function issetFunctionReference($index)
38
    {
39
        return isset($this->functionReference[$index]);
40
    }
41
42
    /**
43
     * unset functionReference
44
     *
45
     * @param scalar $index
46
     * @return void
47
     */
48
    public function unsetFunctionReference($index)
49
    {
50
        unset($this->functionReference[$index]);
51
    }
52
53
    /**
54
     * Gets as functionReference
55
     *
56
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReferenceExpressionType[]
57
     */
58
    public function getFunctionReference()
59
    {
60
        return $this->functionReference;
61
    }
62
63
    /**
64
     * Sets a new functionReference
65
     *
66
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReferenceExpressionType[] $functionReference
67
     * @return self
68
     */
69
    public function setFunctionReference(array $functionReference)
70
    {
71
        $this->functionReference = $functionReference;
72
        return $this;
73
    }
74
}
75