src/lib/Herrera/Box/StubGenerator.php
public function mung(array $list)
    {
        foreach ($list as $value) {
            if (false === in_array($value, self::$allowedMung)) {
                throw InvalidArgumentException::create(
                    'The $_SERVER variable "%s" is not allowed.',
                    $value
                );
            }
        }

        $this->mung = $list;

        return $this;
    }
public function mung(array $list)
    {
        foreach ($list as $value) {
            if (false === in_array($value, self::$allowedMung)) {
                throw InvalidArgumentException::create(
                    'The $_SERVER variable "%s" is not allowed.',
                    $value
                );
            }
        }

        $this->mung = $list;

        return $this;
    }
public function mung ( array $ list ) { foreach ( $ list as $ value ) { if ( false === in_array ( $ value , self :: $ allowedMung ) ) { throw InvalidArgumentException :: create ( 'The $_SERVER variable "%s" is not allowed.' , $ value ) ; } } $ this -> mung = $ list ; return $ this ; }
Sets the list of server variables to modify.

@param array $list The list.

@return StubGenerator The stub generator.

@throws Exception\Exception
@throws InvalidArgumentException If the list contains an invalid value.
Sets the list of server variables to modify .