Conecciones de Promociones
This commit is contained in:
@ -11,9 +11,22 @@ class Proyecto
|
||||
protected Repository\Proyecto $proyectoRepository,
|
||||
protected Repository\Proyecto\EstadoProyecto $estadoProyecto
|
||||
) {}
|
||||
public function getVendibles(): array
|
||||
|
||||
/**
|
||||
* @param string|array|null $orderBy
|
||||
* @return array
|
||||
*/
|
||||
public function getAll(null|string|array $orderBy = null): array
|
||||
{
|
||||
return $this->proyectoRepository->fetchAllActive();
|
||||
try {
|
||||
return array_map([$this, 'process'], $this->proyectoRepository->fetchAll($orderBy));
|
||||
} catch (Implement\Exception\EmptyResult) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
public function getVendibles(null|string|array $orderBy = null): array
|
||||
{
|
||||
return $this->proyectoRepository->fetchAllActive($orderBy);
|
||||
}
|
||||
public function getEscriturando(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user