PricingManager
class PricingManager implements PricingManagerInterface (View source)
Properties
$pricing | The DTO of the pricing. |
||
$purchasable | The instance of the purchasable model. |
||
Authenticatable | $user | The instance of the user. |
|
Currency | $currency | The instance of the currency. |
|
$qty | The quantity value. |
||
Collection | $customerGroups | The customer groups to check against. |
Methods
__construct()
No description
user(Authenticatable $user)
Set the user property.
guest()
Set the user property to NULL.
qty(int $qty)
Set the quantity property.
customerGroups(Collection $customerGroups)
Set the customer groups.
get()
Get the price for the purchasable.
Details
__construct()
No description
PricingResponse
for(Purchasable $purchasable)
Set the purchasable property.
PricingManagerInterface
user(Authenticatable $user)
Set the user property.
PricingManager
guest()
Set the user property to NULL.
PricingManagerInterface
currency(Currency $currency)
Set the currency property.
PricingManagerInterface
qty(int $qty)
Set the quantity property.
PricingManagerInterface
customerGroups(Collection $customerGroups)
Set the customer groups.
PricingManagerInterface
customerGroup(CustomerGroup $customerGroup)
Set the customer group.
PricingResponse
get()
Get the price for the purchasable.