wiki/content/20201112123704-cardscheme_constraint.md

29 lines
474 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: c74d4f32-ff6b-419e-8ed7-eb0b018de44d
title: CardScheme Constraint
---
See Universal Air Travel Plan[^1] for more details.
# Syntax
``` php
// ...
class Transaction
{
/**
* @Assert\CardScheme(
* schemes={"AMEX", "MASTERCARD", "UATP", "VISA"},
* message="Your credit card number is invalid."
* )
*/
protected $cardNumber;
}
```
# Footnotes
[^1]: <https://en.wikipedia.org/wiki/Universal_Air_Travel_Plan>