private function createCategory($categoryId) { $category = new Category(); $category->setId($categoryId); return $category; }