GiftVoucherPurchasedService
class GiftVoucherPurchasedService implements GiftVoucherPurchasedServiceInterface
Main services related to GiftVoucherPurchased
Properties
private EntityManagerInterface | $em | Stores EntityManagerInterface | |
private GiftVoucherEmailInterface | $giftVoucherEmail | Stores GiftVoucherEmailInterface | |
private GiftVoucherFormFactoryInterface | $giftVoucherFormFactory | Stores GiftVoucherFormFactoryInterface | |
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface | |
private Request | $request | Stores current Request | |
private Environment | $environment | Stores Environment |
Methods
No description
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 67
__construct(EntityManagerInterface $em, GiftVoucherEmailInterface $giftVoucherEmail, GiftVoucherFormFactoryInterface $giftVoucherFormFactory, ServiceToolsInterface $serviceTools, RequestStack $requestStack, Environment $environment)
at line 87
GiftVoucherPurchased
create(GiftVoucherAvailable $giftVoucherAvailable)
Defines the GitVoucherPurchased from GiftVoucherAvailable
at line 106
Form
createForm(string $name, GiftVoucherPurchased $giftVoucherPurchased)
Shortcut to call GiftVoucherFormFactory to create Form
at line 114
string
defineIdentifier()
Defines the identifier of the GiftVoucherPurchased, including the secret code (only capital letters except "o" to avoid confusion with 0)
at line 126
array
getAll()
Gets all the GiftVoucherPurchased
at line 137
string
getHtml(GiftVoucherPurchased $giftVoucherPurchased)
Gets xhtml code for GiftVoucherPurchased
at line 148
getIdentifierFormatted(string $identifier)
Returns the formatted identifier to be displayed, without secret code
at line 156
register(GiftVoucherPurchased $giftVoucherPurchased, bool $test)
Registers the GiftVoucherPurchased
at line 171
utilisation(GiftVoucherPurchased $giftVoucherPurchased, DateTime $now)
Marks the GiftVoucherPurchased as used
at line 186
string|false
validate(Payment $payment)
Validates the GiftVoucherPurchased after its payment