| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class AttrGet implements JsonSerializable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The attribute name |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $sAttrName; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The constructor. |
||
| 18 | * |
||
| 19 | * @param string $sAttrName The attribute name |
||
| 20 | */ |
||
| 21 | public function __construct(string $sAttrName) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Convert this call to array, when converting the response into json. |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public function jsonSerialize(): array |
||
| 39 |