| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Script |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Nacmartin\PhpExecJs\PhpExecJs |
||
| 18 | */ |
||
| 19 | protected $executor; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Initializes the evaluator instance. |
||
| 23 | */ |
||
| 24 | 33 | public function __construct() |
|
| 31 | 33 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Evaluates the given Javascript code. |
||
| 35 | * |
||
| 36 | * @param string $script |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function evaluate($script) |
||
| 44 |