public function hydrate($data, $append = false)
    {
        if ($append) {
            $this->addItem($data);
        } else {
            $this->reset($data);
        }

        return $this;
    }
public function hydrate($data, $append = false)
    {
        if ($append) {
            $this->addItem($data);
        } else {
            $this->reset($data);
        }

        return $this;
    }
public function hydrate ( $ data , $ append = false ) { if ( $ append ) { $ this -> addItem ( $ data ) ; } else { $ this -> reset ( $ data ) ; } return $ this ; }
Hydrate with external data, optionally append

@param $data array     The data to be hydrated into the manager
@param bool $append When true, data will be appended to the current set
@return $this
Hydrate with external data optionally append