for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Service\PurchaseFlow;
use Eccube\Entity\ItemHolderInterface;
use Eccube\Entity\Customer;
/**
* PurchaseFlowの実行中コンテキスト.
class PurchaseContext extends \SplObjectStorage
{
private $user;
private $originHolder;
public function __construct(ItemHolderInterface $originHolder = null, Customer $user = null)
$this->originHolder = $originHolder;
$this->user = $user;
}
* PurchaseFlow実行前の{@link ItemHolderInterface}を取得.
* @return ItemHolderInterface
public function getOriginHolder()
return $this->originHolder;
* 会員情報を取得.
* @return Customer
public function getUser()
return $this->user;