Méthode | Description | |
---|---|---|
__construct ( Elcodi\Component\Cart\Repository\OrderRepository $orderRepository, Elcodi\Component\Cart\Wrapper\CartWrapper $cartWrapper, Elcodi\Component\Currency\Services\CurrencyConverter $currencyConverter, Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface $purchasableNameResolver ) | ||
findOrder ( integer $orderId ) : Object | Given an id, find Order | |
getAmount ( ) : integer | Get total order amount. | |
getCurrency ( ) : string | Get the currency in which the order is paid | |
getExtraData ( ) : array | Get extra data | |
getOrder ( ) : Object | Return order | |
getOrderId ( ) : integer | Return order identifier value | |
isOrderPaid ( ) : array | Get extra data | |
setOrder ( $order ) | Set order to OrderWrapper |
public __construct ( Elcodi\Component\Cart\Repository\OrderRepository $orderRepository, Elcodi\Component\Cart\Wrapper\CartWrapper $cartWrapper, Elcodi\Component\Currency\Services\CurrencyConverter $currencyConverter, Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface $purchasableNameResolver ) | ||
$orderRepository | Elcodi\Component\Cart\Repository\OrderRepository | Order repository |
$cartWrapper | Elcodi\Component\Cart\Wrapper\CartWrapper | Cart wrapper |
$currencyConverter | Elcodi\Component\Currency\Services\CurrencyConverter | Currency converter |
$purchasableNameResolver | Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface | Purchasable name resolver |
public getCurrency ( ) : string | ||
Résultat | string |
public getExtraData ( ) : array | ||
Résultat | array |
public getOrderId ( ) : integer | ||
Résultat | integer |