public function getApiAlias(): string
{ return 'product_cross_selling_assigned_products_collection';
} /**
* @return list<string>
*/
public function getProductIds(): array
{ return $this->
fmap(fn (ProductCrossSellingAssignedProductsEntity
$entity) =>
$entity->
getProductId());
} public function sortByPosition(): void
{ $this->
sort(fn (ProductCrossSellingAssignedProductsEntity
$a, ProductCrossSellingAssignedProductsEntity
$b) =>
$a->
getPosition() <=>
$b->
getPosition());
} protected function getExpectedClass(): string
{ return ProductCrossSellingAssignedProductsEntity::
class;
}}