public function register_script(Script $script) { $this->scripts[$script->handle()] = $script; return $this; }