public function whenEnvironmentIs()
    {
        $environments = func_get_args();

        $appEnvironment = $this->appEnvironment;

        return $this->when(function($asset) use ($environments, $appEnvironment)
        {
            return in_array($appEnvironment, $environments);
        });
    }
public function whenEnvironmentIs()
    {
        $environments = func_get_args();

        $appEnvironment = $this->appEnvironment;

        return $this->when(function($asset) use ($environments, $appEnvironment)
        {
            return in_array($appEnvironment, $environments);
        });
    }
public function whenEnvironmentIs ( ) { $ environments = func_get_args ( ) ; $ appEnvironment = $ this -> appEnvironment ; return $ this -> when ( function ( $ asset ) use ( $ environments , $ appEnvironment ) { return in_array ( $ appEnvironment , $ environments ) ; } ) ; }
Add an environment requirement to the filter.

@return \Basset\Filter\Filter
Add an environment requirement to the filter .