public function appendScript($script) { $this->script = trim($this->script . PHP_EOL . $script); return $this; }