Lines
100.00%
4 / 4
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Apiclient | 100.00% | 4 / 4 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| getDefaults | 100.00% | 4 / 4 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | namespace BO\Zmsentities; | |
| 4 | ||
| 5 | class Apiclient extends Schema\Entity | |
| 6 | { | |
| 7 | public const string PRIMARY = 'clientKey'; | |
| 8 | ||
| 9 | public static $schema = "apiclient.json"; | |
| 10 | ||
| 11 | /** | |
| 12 | * @return string[] | |
| 13 | * | |
| 14 | */ | |
| 15 | #[\Override] | |
| 16 | public function getDefaults() | |
| 17 | { | |
| 18 | return [ | |
| 19 | 'clientKey' => '', | |
| 20 | 'shortname' => 'default', | |
| 21 | ]; | |
| 22 | } | |
| 23 | } |