| Total Complexity | 3 |
| Total Lines | 39 |
| 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) |
||
| 22 | { |
||
| 23 | $this->sAttrName = $sAttrName; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns a string representation of the script output (javascript) from this call |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function __toString(): string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Convert this call to array, when converting the response into json. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function jsonSerialize(): array |
||
| 49 |