public function hasBeenUpdated(): ?bool
    {
        if (! $this->lastStatement) {
            throw new DBALManagerException('This method should be called only after insertOrUpdate.');
        }

        $rowCount = $this->lastStatement->rowCount();
        if ($rowCount === 1) {
            return false;
        } elseif ($rowCount === 2) {
            return true;
        } elseif ($rowCount === 0) {
            return null;
        }

        throw new DBALManagerException('This method should be called only after insertOrUpdate. Got rowCount result: ' . $rowCount);
    }
public function hasBeenUpdated(): ?bool
    {
        if (! $this->lastStatement) {
            throw new DBALManagerException('This method should be called only after insertOrUpdate.');
        }

        $rowCount = $this->lastStatement->rowCount();
        if ($rowCount === 1) {
            return false;
        } elseif ($rowCount === 2) {
            return true;
        } elseif ($rowCount === 0) {
            return null;
        }

        throw new DBALManagerException('This method should be called only after insertOrUpdate. Got rowCount result: ' . $rowCount);
    }
public function hasBeenUpdated ( ) : ? bool { if ( ! $ this -> lastStatement ) { throw new DBALManagerException ( 'This method should be called only after insertOrUpdate.' ) ; } $ rowCount = $ this -> lastStatement -> rowCount ( ) ; if ( $ rowCount === 1 ) { return false ; } elseif ( $ rowCount === 2 ) { return true ; } elseif ( $ rowCount === 0 ) { return null ; } throw new DBALManagerException ( 'This method should be called only after insertOrUpdate. Got rowCount result: ' . $ rowCount ) ; }
returns if row has been updated or inserted
can only be called after insertOrUpdate, throws DBALManagerException otherwise

@return bool|null true if updated, false if inserted, null if nothing happened

@throws DBALManagerException

@see http://php.net/manual/en/pdostatement.rowcount.php#109891
returns if row has been updated or inserted can only be called after insertOrUpdate throws DBALManagerException otherwise