public function getLastBatchNumber(): int
    {
        $stmt = $this->pdo->query("select max(batch) from {$this->table}");
        $stmt->execute();

        return (int) $stmt->fetch(PDO::FETCH_ASSOC)['max'];
    }
public function getLastBatchNumber(): int
    {
        $stmt = $this->pdo->query("select max(batch) from {$this->table}");
        $stmt->execute();

        return (int) $stmt->fetch(PDO::FETCH_ASSOC)['max'];
    }
public function getLastBatchNumber ( ) : int { $ stmt = $ this -> pdo -> query ( "select max(batch) from {$this->table}" ) ; $ stmt -> execute ( ) ; return ( int ) $ stmt -> fetch ( PDO :: FETCH_ASSOC ) [ 'max' ] ; }
Get the last migration batch number.

@return int
Get the last migration batch number .