DaftObjectTrait
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 21
ccs 0
cts 10
cp 0
c 0
b 0
f 0
wmc 0
1
<?php
2
/**
3
* @author SignpostMarv
4
*/
5
declare(strict_types=1);
6
7
namespace SignpostMarv\DaftObject\SchemaOrg\DaftObjectTraits;
8
9
trait DaftObjectTrait
10
{
11
    abstract protected function NudgePropertyValue(
12
        string $property,
13
        $value,
14
        bool $autoTrimStrings = false,
15
        bool $throwIfNotUnique = false
16
    ) : void;
17
18
    /**
19
    * @param array<int, bool> $value
20
    */
21
    abstract protected function NudgePropertyWithUniqueBooleans(
22
        string $property,
23
        array $value
24
    ) : void;
25
26
    /**
27
    * @return scalar|array|object|null the property value
28
    */
29
    abstract protected function RetrievePropertyValueFromData(string $property);
30
}
31