Skip to content

Commit

Permalink
Added missing session base class
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Aug 12, 2019
1 parent 2dd4527 commit 0a6bb31
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/mwlib/src/MW/Session/Base.php
@@ -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;
}
}

0 comments on commit 0a6bb31

Please sign in to comment.