GiftVoucherPurchasedServiceInterface
interface GiftVoucherPurchasedServiceInterface
Interface to be called for DI for GiftVoucherPurchased Main related services
Methods
Defines the GitVoucherPurchased from GiftVoucherAvailable
Shortcut to call GiftVoucherFormFactory to create Form
Defines the identifier of the GiftVoucherPurchased, including the secret code (only capital letters except "o" to avoid confusion with 0)
Gets all the GiftVoucherPurchased
Returns the formatted identifier to be displayed, without secret code
Marks the GiftVoucherPurchased as used
Details
at line 29
GiftVoucherPurchased
create(GiftVoucherAvailable $giftVoucherAvailable)
Defines the GitVoucherPurchased from GiftVoucherAvailable
at line 35
Form
createForm(string $name, GiftVoucherPurchased $giftVoucherPurchased)
Shortcut to call GiftVoucherFormFactory to create 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)
at line 47
array
getAll()
Gets all the GiftVoucherPurchased
at line 53
string
getHtml(GiftVoucherPurchased $giftVoucherPurchased)
Gets xhtml code for GiftVoucherPurchased
at line 59
getIdentifierFormatted(string $identifier)
Returns the formatted identifier to be displayed, without secret code
at line 64
register(GiftVoucherPurchased $giftVoucherPurchased, bool $test)
Registers the GiftVoucherPurchased
at line 69
utilisation(GiftVoucherPurchased $giftVoucherPurchased, DateTime $now)
Marks the GiftVoucherPurchased as used
at line 75
string|false
validate(Payment $payment)
Validates the GiftVoucherPurchased after its payment