21 lines
485 B
PHP
21 lines
485 B
PHP
![]() |
<?php
|
||
|
namespace Incoviba\Service\Venta;
|
||
|
|
||
|
use Incoviba\Repository;
|
||
|
use Incoviba\Model;
|
||
|
|
||
|
class Pie
|
||
|
{
|
||
|
public function __construct(
|
||
|
protected Repository\Venta\Pie $pieRepository,
|
||
|
protected Repository\Venta\Cuota $cuotaRepository
|
||
|
) {}
|
||
|
|
||
|
public function getById(int $pie_id): Model\Venta\Pie
|
||
|
{
|
||
|
$pie = $this->pieRepository->fetchById($pie_id);
|
||
|
$pie->cuotasArray = $this->cuotaRepository->fetchVigenteByPie($pie_id);
|
||
|
return $pie;
|
||
|
}
|
||
|
}
|