callable = $callable; parent::__construct($decoratedBatch); } public function flush() { $items = $this->decoratedBatch->flush(); call_user_func($this->callable, $items); return $items; } }