_resources; } public function setResources(array $resources) { $this->_resources = $resources; return $this; } public function addScript($src, $attribs = [], $name = null) { $this->_resources['script'][] = [$src, $attribs, $name]; return $this; } public function getScripts() { return Qs_Array::get($this->_resources, 'script', []); } public function addInitObject($name, $params = [], $assign = null) { $this->_resources['initObject'][] = [$name, $params, $assign]; return $this; } }