setClient($client); } public function setClient(ClientInterface $client) { $this->client = $client; return $this; } public function getClient(): ClientInterface { return $this->client; } public function execute(InputInterface $input, OutputInterface $output) { try { $mes = $input->getArgument('mes'); $cuenta = $input->getArgument('cuenta'); $response = $this->getClient()->get("/consolidar/update/{$mes}/{$cuenta}/"); if ($response->getStatusCode() === 200) { return Command::SUCCESS; } error_log($response->getReasonPhrase()); return Command::FAILURE; } catch (\Exception $e) { error_log($e); return Command::FAILURE; } } }