src/DataStore/src/DataStore/CsvIntId.php
public function checkIntegrityData()
    {
        $prevId = 0;
        $identifier = $this->getIdentifier();

        foreach ($this as $item) {
            $this->checkIdentifierType($item[$identifier]);

            if ($item[$identifier] < $prevId) {
                throw new DataStoreException("This storage type supports only a list ordered by id ASC");
            }

            $prevId = $item[$identifier];
        }

        return true;
    }
public function checkIntegrityData()
    {
        $prevId = 0;
        $identifier = $this->getIdentifier();

        foreach ($this as $item) {
            $this->checkIdentifierType($item[$identifier]);

            if ($item[$identifier] < $prevId) {
                throw new DataStoreException("This storage type supports only a list ordered by id ASC");
            }

            $prevId = $item[$identifier];
        }

        return true;
    }
public function checkIntegrityData ( ) { $ prevId = 0 ; $ identifier = $ this -> getIdentifier ( ) ; foreach ( $ this as $ item ) { $ this -> checkIdentifierType ( $ item [ $ identifier ] ) ; if ( $ item [ $ identifier ] < $ prevId ) { throw new DataStoreException ( "This storage type supports only a list ordered by id ASC" ) ; } $ prevId = $ item [ $ identifier ] ; } return true ; }
Checks integrity data
@return bool
@throws \rollun\datastore\DataStore\DataStoreException
Checks integrity data