Skip to content

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.

View source

Public Methods ​

MethodDescription
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

View source

Arguments ​

  • $currentPlant