| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class MerchantSwitchCartAfterCustomerAuthenticationSuccessPlugin extends AbstractPlugin implements AfterCustomerAuthenticationSuccessPluginInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritDoc} |
||
| 22 | * - Sets merchant reference value to cookies if a customer's quote contains it, and the quote is not empty. |
||
| 23 | * - If the quote is empty or the quote doesn't contain merchant reference gets merchant reference from cookies and sets to quote. |
||
| 24 | * |
||
| 25 | * @api |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function execute(): void |
||
| 52 |