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.

View source

Arguments

Returns

boolean

Signature

public abstract boolean canSwitchFrom ( craft\commerce\base\PlanInterface $currentPlant )