| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class AttrGet |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The attribute name |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $sAttrName; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The constructor. |
||
| 16 | * |
||
| 17 | * @param string $sAttrName The attribute name |
||
| 18 | */ |
||
| 19 | public function __construct(string $sAttrName) |
||
| 20 | { |
||
| 21 | $this->sAttrName = $sAttrName; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Returns a string representation of the script output (javascript) from this call |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getScript(): string |
||
| 30 | { |
||
| 31 | return $this->sAttrName; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Convert this call to string |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function __toString() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |