| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class JsExpression |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string the JavaScript expression represented by this object |
||
| 16 | */ |
||
| 17 | public $expression; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Constructor. |
||
| 21 | * |
||
| 22 | * @param string $expression the JavaScript expression represented by this object |
||
| 23 | */ |
||
| 24 | public function __construct($expression) |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The PHP magic function converting an object into a string. |
||
| 31 | * |
||
| 32 | * @return string the JavaScript expression. |
||
| 33 | */ |
||
| 34 | public function __toString() |
||
| 39 |