2 Commits

Author SHA1 Message Date
8d3ce99be7 Update env sample 2025-05-12 18:32:30 -04:00
35386724b3 FIX: DEPRECATED 2025-05-12 18:07:14 -04:00
13 changed files with 20 additions and 13 deletions

View File

@ -1,2 +1,9 @@
#ENVIRONMENT=
TZ=
APP_NAME=incoviba_cli
API_URL=http://proxy/api
API_USERNAME=
API_PASSWORD=

View File

@ -7,7 +7,7 @@ use Symfony\Component\Console;
class Command extends Console\Command\Command
{
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, string $name = null)
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, ?string $name = null)
{
parent::__construct($name);
}

View File

@ -10,8 +10,8 @@ use Incoviba\Common\Alias\Command;
)]
class Comunas extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/direcciones/region/13/comunas';
$output->writeln("GET {$uri}");

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class Update extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/contabilidad/cartolas/update';

View File

@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
)]
class Full extends Command
{
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, string $name = null)
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, ?string $name = null)
{
parent::__construct($client, $logger, $name);
}

View File

@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
)]
class IPC extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));

View File

@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
)]
class UF extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$now = new DateTimeImmutable();

View File

@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
)]
class Update extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$url = '/api/money/ufs';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class Activos extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/proyectos';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class Vigentes extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cierres/vigentes';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class Hoy extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/hoy';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class Pendientes extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/pendiente';

View File

@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
)]
class PorVencer extends Command
{
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
{
$this->logger->debug("Running {$this->getName()}");
$uri = '/api/ventas/cuotas/vencer';