| 1 | <?php |
||
| 8 | class CreditorReference |
||
| 9 | { |
||
| 10 | const PATTERN = '/^RF[0-9]{2}[0-9A-Z]{1,21}$/'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $reference; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $reference |
||
| 19 | * |
||
| 20 | * @throws \InvalidArgumentException When the reference is invalid. |
||
| 21 | */ |
||
| 22 | 2 | public function __construct($reference) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Returns a formatted representation of the reference |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function format() |
||
| 40 | } |
||
| 41 |