Added a new associate method, to associate a row in the cart with a model, so you can access the model from the CartRowCollection

This commit is contained in:
Rob Gloudemans
2014-03-02 13:43:11 +01:00
parent 30d789f0c0
commit 47da5b128d
8 changed files with 159 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
<?php
class SessionMock {
protected $session;
public function has($key)
{
return isset($this->session[$key]);
}
public function get($key)
{
return $this->session[$key];
}
public function put($key, $value)
{
$this->session[$key] = $value;
}
}