PlanInterface ​
- Type
- Interface
- Namespace
- craft\commerce\base
- Implemented by
- craft\commerce\base\Plan, craft\commerce\models\subscriptions\DummyPlan
- Since
- 2.0
PlanInterface defines the common interface to be implemented by plan classes.
Public Methods ​
Method | Description |
---|---|
canSwitchFrom() | Returns whether it's possible to switch to this plan from a different plan. |
canSwitchFrom()
​
Returns whether it's possible to switch to this plan from a different plan.
TODO: Fix typo in next major release currentPlant -> currentPlan
Arguments ​
$currentPlant