public function set(array $data): CollectionInterface
    {
        foreach ($data as $row) {
            $this->add($row);
        }

        return $this;
    }
public function set(array $data): CollectionInterface
    {
        foreach ($data as $row) {
            $this->add($row);
        }

        return $this;
    }
public function set ( array $ data ) : CollectionInterface { foreach ( $ data as $ row ) { $ this -> add ( $ row ) ; } return $ this ; }
Sets the entire data

@param *array $data

@return CollectionInterface
Sets the entire data