src/Asset/Asset.php
public function setArgument($arg = null): AssetInterface
    {
        if (! is_null($arg)) {
            $this->argument = $arg;

            return $this;
        }

        // If no argument is passed but we have its type
        // then let's define some defaults.
        if ('style' === $this->getType()) {
            $this->argument = 'all';
        }

        if ('script' === $this->getType()) {
            $this->argument = true;
        }

        return $this;
    }
public function setArgument($arg = null): AssetInterface
    {
        if (! is_null($arg)) {
            $this->argument = $arg;

            return $this;
        }

        // If no argument is passed but we have its type
        // then let's define some defaults.
        if ('style' === $this->getType()) {
            $this->argument = 'all';
        }

        if ('script' === $this->getType()) {
            $this->argument = true;
        }

        return $this;
    }
public function setArgument ( $ arg = null ) : AssetInterface { if ( ! is_null ( $ arg ) ) { $ this -> argument = $ arg ; return $ this ; } // If no argument is passed but we have its type // then let's define some defaults. if ( 'style' === $ this -> getType ( ) ) { $ this -> argument = 'all' ; } if ( 'script' === $ this -> getType ( ) ) { $ this -> argument = true ; } return $ this ; }
Set the asset argument.

@param bool|string $arg

@return AssetInterface
Set the asset argument .