public function truncate()
    {
        $this->file->flock(LOCK_EX);
        $result = $this->file->ftruncate(0);
        $this->file->flock(LOCK_UN);

        return $result;
    }
public function truncate()
    {
        $this->file->flock(LOCK_EX);
        $result = $this->file->ftruncate(0);
        $this->file->flock(LOCK_UN);

        return $result;
    }
public function truncate ( ) { $ this -> file -> flock ( LOCK_EX ) ; $ result = $ this -> file -> ftruncate ( 0 ) ; $ this -> file -> flock ( LOCK_UN ) ; return $ result ; }
Truncates the collection, removing all the data from the file

@return bool
Truncates the collection removing all the data from the file