| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CurlRequestAction extends Action |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $endpoint; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * CurlRequestAction constructor. |
||
| 16 | * |
||
| 17 | * @param string $endpoint |
||
| 18 | */ |
||
| 19 | public function __construct(string $endpoint) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Execute the cURL request and JSON decode the result. |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function execute() |
||
| 41 |