| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class Command extends \ParcelValue\ApiClient\AbstractController |
||
| 15 | { |
||
| 16 | use \ParcelValue\ApiClient\Traits\ControllerApiTrait; |
||
| 17 | |||
| 18 | protected string $jwt; |
||
| 19 | |||
| 20 | protected \WebServCo\Framework\Interfaces\OutputLoggerInterface $outputLogger; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | parent::__construct(); |
||
| 25 | |||
| 26 | $this->jwt = \ParcelValue\Api\JWT\Helper::generate( |
||
| 27 | Config::string('APP_API_CLIENT_ID'), |
||
| 28 | Config::string('APP_API_CLIENT_KEY'), |
||
| 29 | Config::string('APP_API_SERVER_KEY'), |
||
| 30 | ); |
||
| 31 | |||
| 32 | $this->outputLogger = new \WebServCo\Framework\Log\CliOutputLogger(); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function current(): ResponseInterface |
||
| 47 | } |
||
| 48 | } |
||
| 49 |