private function changeClasses($method, $class)
    {
        array_map(function ($class) use ($method) {
            if ($method === 'add') {
                return $this->classes->put($class, $class);
            }

            return $this->classes->remove($class);
        }, explode(' ', $class));

        return $this;
    }
private function changeClasses($method, $class)
    {
        array_map(function ($class) use ($method) {
            if ($method === 'add') {
                return $this->classes->put($class, $class);
            }

            return $this->classes->remove($class);
        }, explode(' ', $class));

        return $this;
    }
private function changeClasses ( $ method , $ class ) { array_map ( function ( $ class ) use ( $ method ) { if ( $ method === 'add' ) { return $ this -> classes -> put ( $ class , $ class ) ; } return $ this -> classes -> remove ( $ class ) ; } , explode ( ' ' , $ class ) ) ; return $ this ; }
Change class collection values.

@param string $method
@param string $class

@return self
Change class collection values .