interface GiftVoucherPurchasedServiceInterface

Interface to be called for DI for GiftVoucherPurchased Main related services

Methods

create(GiftVoucherAvailable $giftVoucherAvailable)

Defines the GitVoucherPurchased from GiftVoucherAvailable

Form
createForm(string $name, GiftVoucherPurchased $giftVoucherPurchased)

Shortcut to call GiftVoucherFormFactory to create Form

string
defineIdentifier()

Defines the identifier of the GiftVoucherPurchased, including the secret code (only capital letters except "o" to avoid confusion with 0)

array
getAll()

Gets all the GiftVoucherPurchased

string
getHtml(GiftVoucherPurchased $giftVoucherPurchased)

Gets xhtml code for GiftVoucherPurchased

getIdentifierFormatted(string $identifier)

Returns the formatted identifier to be displayed, without secret code

register(GiftVoucherPurchased $giftVoucherPurchased, bool $test)

Registers the GiftVoucherPurchased

utilisation(GiftVoucherPurchased $giftVoucherPurchased, DateTime $now)

Marks the GiftVoucherPurchased as used

string|false
validate(Payment $payment)

Validates the GiftVoucherPurchased after its payment

Details

at line 29
GiftVoucherPurchased create(GiftVoucherAvailable $giftVoucherAvailable)

Defines the GitVoucherPurchased from GiftVoucherAvailable

Parameters

GiftVoucherAvailable $giftVoucherAvailable

Return Value

GiftVoucherPurchased

at line 35
Form createForm(string $name, GiftVoucherPurchased $giftVoucherPurchased)

Shortcut to call GiftVoucherFormFactory to create Form

Parameters

string $name
GiftVoucherPurchased $giftVoucherPurchased

Return Value

Form

at line 41
string defineIdentifier()

Defines the identifier of the GiftVoucherPurchased, including the secret code (only capital letters except "o" to avoid confusion with 0)

Return Value

string

at line 47
array getAll()

Gets all the GiftVoucherPurchased

Return Value

array

at line 53
string getHtml(GiftVoucherPurchased $giftVoucherPurchased)

Gets xhtml code for GiftVoucherPurchased

Parameters

GiftVoucherPurchased $giftVoucherPurchased

Return Value

string

at line 59
getIdentifierFormatted(string $identifier)

Returns the formatted identifier to be displayed, without secret code

Parameters

string $identifier

at line 64
register(GiftVoucherPurchased $giftVoucherPurchased, bool $test)

Registers the GiftVoucherPurchased

Parameters

GiftVoucherPurchased $giftVoucherPurchased
bool $test

at line 69
utilisation(GiftVoucherPurchased $giftVoucherPurchased, DateTime $now)

Marks the GiftVoucherPurchased as used

Parameters

GiftVoucherPurchased $giftVoucherPurchased
DateTime $now

at line 75
string|false validate(Payment $payment)

Validates the GiftVoucherPurchased after its payment

Parameters

Payment $payment

Return Value

string|false