Passed
Branch fuzzy-generators (49fcec)
by SignpostMarv
08:30
created

SetBroadcastFrequencyValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 1
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
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\Intangible;
8
9
use SignpostMarv\DaftObject\SchemaOrg\Intangible as Base;
10
use SignpostMarv\DaftObject\SchemaOrg\TypeUtilities;
11
12
class BroadcastFrequencySpecification extends Base
13
{
14
    const SCHEMA_ORG_TYPE = 'BroadcastFrequencySpecification';
15
16
    const PROPERTIES = [
17
        'broadcastFrequencyValue',
18
    ];
19
20
    /**
21
    * @return array<int, int|float|StructuredValue\QuantitativeValue>
22
    */
23 1
    public function GetBroadcastFrequencyValue() : array
24
    {
25
        /**
26
        * @var array<int, int|float|StructuredValue\QuantitativeValue>
27
        */
28 1
        $out = TypeUtilities::ExpectRetrievedValueIsArray(
29 1
            'broadcastFrequencyValue',
30 1
            $this->RetrievePropertyValueFromData('broadcastFrequencyValue'),
31 1
            static::class
32
        );
33
34 1
        return $out;
35
    }
36
37
    /**
38
    * @param array<int, int|float|StructuredValue\QuantitativeValue> $value
39
    */
40
    public function SetBroadcastFrequencyValue(array $value) : void
41
    {
42
        $this->NudgePropertyWithUniqueNumericsOrThings(
43
            'broadcastFrequencyValue',
44
            __METHOD__,
45
            $value,
46
            StructuredValue\QuantitativeValue::class
47
        );
48
    }
49
}
50