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) { error_log('Starting Consolidar'); try { $response = $this->getClient()->get('/consolidar'); if ($response->getStatusCode() === 200) { return 0; } return $response->getStatusCode(); } catch (\Exception $e) { error_log($e); return $e->getCode(); } } }