| @@ 60-73 (lines=14) @@ | ||
| 57 | * @param Customer $customerGetter |
|
| 58 | * @param array $data |
|
| 59 | */ |
|
| 60 | public function __construct( |
|
| 61 | Context $context, |
|
| 62 | Secret $secret, |
|
| 63 | QRCode $code, |
|
| 64 | TwoFactorSecret $twoFactorSecret, |
|
| 65 | Customer $customerGetter, |
|
| 66 | array $data = [] |
|
| 67 | ) { |
|
| 68 | parent::__construct($context, $data); |
|
| 69 | $this->secret = $secret; |
|
| 70 | $this->code = $code; |
|
| 71 | $this->twoFactorSecret = $twoFactorSecret; |
|
| 72 | $this->customerGetter = $customerGetter; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function getCustomer() |
|
| 76 | { |
|
| @@ 61-74 (lines=14) @@ | ||
| 58 | * |
|
| 59 | * @internal param array $data |
|
| 60 | */ |
|
| 61 | public function __construct( |
|
| 62 | Template\Context $context, |
|
| 63 | QRCodeGenerator $qRCode, |
|
| 64 | TwoFactorSecret $twoFactorSecret, |
|
| 65 | Customer $customerGetter, |
|
| 66 | CustomerConfig $customerConfig, |
|
| 67 | array $data = [] |
|
| 68 | ) { |
|
| 69 | parent::__construct($context, $data); |
|
| 70 | $this->qRCode = $qRCode; |
|
| 71 | $this->twoFactorSecret = $twoFactorSecret; |
|
| 72 | $this->customerGetter = $customerGetter; |
|
| 73 | $this->customerConfig = $customerConfig; |
|
| 74 | } |
|
| 75 | ||
| 76 | public function getCustomer() |
|
| 77 | { |
|