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 (opens new window)

# 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.

View source (opens new window)

Arguments

Returns

boolean (opens new window)