Conecciones de Promociones

This commit is contained in:
Juan Pablo Vial
2025-04-03 13:15:56 -03:00
parent ced673e452
commit 8a1e6a7761
17 changed files with 1144 additions and 79 deletions

View File

@ -58,12 +58,13 @@ class Broker extends Ideal\Service
}
}
/**
* @param null|string|array $orderBy
* @return array
*/
public function getAll(): array
public function getAll(null|string|array $orderBy = null): array
{
try {
return array_map([$this, 'process'], $this->brokerRepository->fetchAll());
return array_map([$this, 'process'], $this->brokerRepository->fetchAll($orderBy));
} catch (EmptyResult) {
return [];
}