Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function __toString():string { |
|
38 | 1 | $script = $this->generateVueObject(JavascriptUtils::arrayToJsObject($this->configuration + $this->components + $this->directives + $this->filters + $this->data + $this->computeds + $this->watchers + $this->hooks + $this->methods)); |
|
39 | 1 | $script = JsUtils::declareVariable('const',$this->varName,$script); |
|
40 | 1 | $script .= ($this->useAxios) ? $this->varName.".prototype.\$http = axios;\n" : ""; |
|
41 | 1 | return $script; |
|
42 | } |
||
43 | } |