2020-01-17 13:42:47 +00:00
|
|
|
<?php
|
2020-01-28 14:38:07 +00:00
|
|
|
|
2022-02-07 10:36:38 +00:00
|
|
|
namespace Helper;
|
2020-01-17 13:42:47 +00:00
|
|
|
|
2022-02-08 08:44:19 +00:00
|
|
|
use Actions\ProductAction;
|
|
|
|
|
use Actions\ProductActionContract;
|
2021-10-04 13:35:47 +00:00
|
|
|
use Codeception\Module\Laravel;
|
2020-01-17 13:42:47 +00:00
|
|
|
|
2022-02-08 08:44:19 +00:00
|
|
|
class Bagisto extends Laravel implements ProductActionContract
|
2020-01-17 13:42:47 +00:00
|
|
|
{
|
2022-02-08 08:44:19 +00:00
|
|
|
use ProductAction;
|
2020-01-28 14:38:07 +00:00
|
|
|
|
2022-02-07 13:37:15 +00:00
|
|
|
/**
|
|
|
|
|
* Set all session with the given key and value in the array.
|
|
|
|
|
*
|
|
|
|
|
* @param array $keyValue
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function setSession(array $keyValue): void
|
|
|
|
|
{
|
|
|
|
|
session($keyValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Flush the session data and regenerate the ID
|
|
|
|
|
* A logged in user will be logged off.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function invalidateSession(): void
|
|
|
|
|
{
|
|
|
|
|
session()->invalidate();
|
|
|
|
|
}
|
2020-08-27 11:14:31 +00:00
|
|
|
}
|