| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function __construct() |
||
| 12 | { |
||
| 13 | $config = [ |
||
| 14 | 'description' => 'Result of a 2FA activation/deactivation', |
||
| 15 | 'fields' => [ |
||
| 16 | 'status' => [ |
||
| 17 | 'type' => self::int(), |
||
| 18 | 'description' => '0: nothing to be done, 1: secret generated (step 1), 2: activation success (step 2), 3: deactivation success', |
||
| 19 | ], |
||
| 20 | 'qrcode' => [ |
||
| 21 | 'type' => self::string(), |
||
| 22 | 'description' => 'Provisioning QR code in SVG', |
||
| 23 | ], |
||
| 24 | ], |
||
| 25 | ]; |
||
| 26 | |||
| 27 | parent::__construct($config); |
||
| 28 | } |
||
| 30 |