Test Failed
Push — master ( 4486b3...16bdc1 )
by SignpostMarv
02:20
created

SetMaximumAttendeeCapacity()   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
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject\SchemaOrg\DaftObjectTraits;
8
9
trait MaximumAttendeeCapacity
10
{
11
    use DaftObjectTrait;
12
13
    /**
14
    * @return array<int, int>
15
    */
16
    public function GetMaximumAttendeeCapacity() : array
17
    {
18
        /**
19
        * @var array<int, int>
20
        */
21
        $out = $this->ExpectRetrievedValueIsArray('maximumAttendeeCapacity');
0 ignored issues
show
Bug introduced by
It seems like ExpectRetrievedValueIsArray() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        /** @scrutinizer ignore-call */ 
22
        $out = $this->ExpectRetrievedValueIsArray('maximumAttendeeCapacity');
Loading history...
22
23
        return $out;
24
    }
25
26
    /**
27
    * @param array<int, int> $value
28
    */
29
    public function SetMaximumAttendeeCapacity(array $value) : void
30
    {
31
        $this->NudgePropertyValue('maximumAttendeeCapacity', $value);
32
    }
33
}
34