public function get($index) { $this->validateBatchIndexExists($index); return $this->batches[$index]; }