| Total Complexity | 4 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 48% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SpeakableSpecification extends Base |
||
| 15 | { |
||
| 16 | const SCHEMA_ORG_TYPE = 'SpeakableSpecification'; |
||
| 17 | |||
| 18 | const PROPERTIES = [ |
||
| 19 | 'cssSelector', |
||
| 20 | 'xpath', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array<int, CssSelectorType> |
||
| 25 | */ |
||
| 26 | 1 | public function GetCssSelector() : array |
|
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var array<int, CssSelectorType> |
||
| 30 | */ |
||
| 31 | 1 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 32 | 1 | 'cssSelector', |
|
| 33 | 1 | $this->RetrievePropertyValueFromData('cssSelector'), |
|
| 34 | 1 | static::class |
|
| 35 | ); |
||
| 36 | |||
| 37 | 1 | return $out; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param array<int, CssSelectorType> $value |
||
| 42 | */ |
||
| 43 | public function SetCssSelector(array $value) : void |
||
| 44 | { |
||
| 45 | $this->NudgePropertyWithUniqueValuesOfThings( |
||
| 46 | 'cssSelector', |
||
| 47 | __METHOD__, |
||
| 48 | $value, |
||
| 49 | CssSelectorType::class |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return array<int, XPathType> |
||
| 55 | */ |
||
| 56 | 1 | public function GetXpath() : array |
|
| 57 | { |
||
| 58 | /** |
||
| 59 | * @var array<int, XPathType> |
||
| 60 | */ |
||
| 61 | 1 | $out = TypeUtilities::ExpectRetrievedValueIsArray( |
|
| 62 | 1 | 'xpath', |
|
| 63 | 1 | $this->RetrievePropertyValueFromData('xpath'), |
|
| 64 | 1 | static::class |
|
| 65 | ); |
||
| 66 | |||
| 67 | 1 | return $out; |
|
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param array<int, XPathType> $value |
||
| 72 | */ |
||
| 73 | public function SetXpath(array $value) : void |
||
| 80 | ); |
||
| 81 | } |
||
| 82 | } |
||
| 83 |