| Total Complexity | 3 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class AttrSet implements JsonSerializable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The attribute name |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $sAttrName; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The attribute value |
||
| 20 | * |
||
| 21 | * @var Parameter |
||
| 22 | */ |
||
| 23 | private $xAttrValue; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The constructor. |
||
| 27 | * |
||
| 28 | * @param string $sAttrName The attribute name |
||
| 29 | * @param mixed $xAttrValue The attribute value |
||
| 30 | */ |
||
| 31 | public function __construct(string $sAttrName, $xAttrValue) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns a string representation of this call |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function __toString(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Convert this call to array, when converting the response into json. |
||
| 49 | * |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | public function jsonSerialize(): array |
||
| 61 |