Conecciones de Promociones
This commit is contained in:
@ -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 [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user