Stolz\Assets\Manager::add PHP Метод

add() публичный Метод

It automatically detects the asset type (JavaScript, CSS or collection). You may add more than one asset passing an array as argument.
public add ( mixed $asset ) : Manager
$asset mixed
Результат Manager
    public function add($asset)
    {
        // More than one asset
        if (is_array($asset)) {
            foreach ($asset as $a) {
                $this->add($a);
            }
        } elseif (isset($this->collections[$asset])) {
            $this->add($this->collections[$asset]);
        } elseif (preg_match($this->js_regex, $asset)) {
            $this->addJs($asset);
        } elseif (preg_match($this->css_regex, $asset)) {
            $this->addCss($asset);
        }
        return $this;
    }