private function pushResource($stackName, $resource) { BA::assertIsEnum($stackName, array('css', 'js')); if (!isset($this->resources[$stackName][$resource])) { $this->resources[$stackName][$resource] = true; } return $this; }
/** * @param string $type * The type of the resource stack - either `css` or `js` */ public function __construct($type) { $type = strtolower($type); BA::assertIsEnum(strtolower($type), array('js', 'css')); $this->type = $type; }