public function setClass($id, $class)
    {
        $this->classes[$id] = $class;
        if (isset($this->items[$id])) {
            unset($this->items[$id]);
        }
        $this->allCreated = false;
        return $this;
    }
public function setClass($id, $class)
    {
        $this->classes[$id] = $class;
        if (isset($this->items[$id])) {
            unset($this->items[$id]);
        }
        $this->allCreated = false;
        return $this;
    }
public function setClass ( $ id , $ class ) { $ this -> classes [ $ id ] = $ class ; if ( isset ( $ this -> items [ $ id ] ) ) { unset ( $ this -> items [ $ id ] ) ; } $ this -> allCreated = false ; return $ this ; }
Set a class for an item for deferred loading of items.

@param mixed $id
@param string $class

@return self
Set a class for an item for deferred loading of items .