-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/** | ||
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0 | ||
* @copyright Aimeos (aimeos.org), 2019 | ||
* @package MW | ||
* @subpackage Session | ||
*/ | ||
|
||
|
||
namespace Aimeos\MW\Session; | ||
|
||
|
||
/** | ||
* Base class for session adapters | ||
* | ||
* @package MW | ||
* @subpackage Session | ||
*/ | ||
abstract class Base | ||
{ | ||
/** | ||
* Sets a list of key/value pairs. | ||
* | ||
* @param array $values Associative list of key/value pairs | ||
* @return \Aimeos\MW\Session\Iface Session instance for method chaining | ||
*/ | ||
public function apply( array $values ) | ||
{ | ||
foreach( $values as $key => $value ) { | ||
$this->set( $key, $value ); | ||
} | ||
|
||
return $this; | ||
} | ||
} |