private function checkResultCount(array $result, $query)
    {
        if (count($result) === 0) {
            throw new RowNotFoundException('Row not found for query: ' . $query);
        }

        if (count($result) > 1) {
            throw new MultipleRowFoundException('Multiple row found for query: ' . $query);
        }
    }
private function checkResultCount(array $result, $query)
    {
        if (count($result) === 0) {
            throw new RowNotFoundException('Row not found for query: ' . $query);
        }

        if (count($result) > 1) {
            throw new MultipleRowFoundException('Multiple row found for query: ' . $query);
        }
    }
private function checkResultCount ( array $ result , $ query ) { if ( count ( $ result ) === 0 ) { throw new RowNotFoundException ( 'Row not found for query: ' . $ query ) ; } if ( count ( $ result ) > 1 ) { throw new MultipleRowFoundException ( 'Multiple row found for query: ' . $ query ) ; } }
Checks the result against the proper row number

@param array  $result
@param string $query

@return void

@throws MultipleRowFoundException
@throws RowNotFoundException
Checks the result against the proper row number