Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Settings extends Model |
||
22 | { |
||
23 | /** |
||
24 | * An application ID for the Edamam Nutrition Analysis API. |
||
25 | * https://developer.edamam.com/edamam-nutrition-api |
||
26 | * |
||
27 | * @var ?string |
||
28 | */ |
||
29 | public ?string $apiApplicationId = null; |
||
30 | |||
31 | /** |
||
32 | * An application key for the Edamam Nutrition Analysis API. |
||
33 | * https://developer.edamam.com/edamam-nutrition-api |
||
34 | * |
||
35 | * @var ?string |
||
36 | */ |
||
37 | public ?string $apiApplicationKey = null; |
||
38 | |||
39 | /** |
||
40 | * Returns whether the settings have API credentials. |
||
41 | */ |
||
42 | public function hasApiCredentials(): bool |
||
47 |