Skip to content

Latest commit

 

History

History
183 lines (86 loc) · 2.7 KB

SubscriptionVariant.md

File metadata and controls

183 lines (86 loc) · 2.7 KB

CBS\SmarterU\DataTypes\SubscriptionVariant

A SubscriptionVariant represents the subscriptions that are assigned to a group.

Methods

Name Description
getAction Get whether the variant is to be assigned to or removed from the group.
getId Get the system-generated identifier for the subscription variant.
getRequiresCredits Get whether enrollments in the subscription require credits.
setAction Set whether the variant is to be assigned to or removed from the group.
setId Set the system-generated identifier for the subscription variant.
setRequiresCredits Set whether enrollments in the subscription require credits.

SubscriptionVariant::getAction

Description

public getAction (void)

Get whether the variant is to be assigned to or removed from the group.

Parameters

This function has no parameters.

Return Values

?string

whether the variant is to be assigned or removed


SubscriptionVariant::getId

Description

public getId (void)

Get the system-generated identifier for the subscription variant.

Parameters

This function has no parameters.

Return Values

string

The system-generated identifier of the subscription


SubscriptionVariant::getRequiresCredits

Description

public getRequiresCredits (void)

Get whether enrollments in the subscription require credits.

Parameters

This function has no parameters.

Return Values

bool

True if and only if the subscription requires credits.


SubscriptionVariant::setAction

Description

public setAction (string $action)

Set whether the variant is to be assigned to or removed from the group.

Parameters

  • (string) $action : 'Add' to add the variant to the
    group, 'Remove' to remove it.

Return Values

self


SubscriptionVariant::setId

Description

public setId (string $Id)

Set the system-generated identifier for the subscription variant.

Parameters

  • (string) $Id : The system-generated identifier of the subscription

Return Values

self


SubscriptionVariant::setRequiresCredits

Description

public setRequiresCredits (bool $requiresCredits)

Set whether enrollments in the subscription require credits.

Parameters

  • (bool) $requiresCredits : True if and only if the subscription
    requires credits.

Return Values

self