| Total Complexity | 2 |
| Total Lines | 26 |
| 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|null |
||
| 28 | */ |
||
| 29 | public $apiApplicationId; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * An application key for the Edamam Nutrition Analysis API. |
||
| 33 | * https://developer.edamam.com/edamam-nutrition-api |
||
| 34 | * |
||
| 35 | * @var string|null |
||
| 36 | */ |
||
| 37 | public $apiApplicationKey; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Returns whether the settings have API credentials. |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | public function hasApiCredentials(): bool |
||
| 49 |