1 | <?php |
||
11 | class GeneralAccount implements AccountInterface |
||
12 | { |
||
13 | const MAX_LENGTH = 34; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $id; |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | * |
||
23 | * @param string $id |
||
24 | * |
||
25 | * @throws InvalidArgumentException When the account identification exceeds the maximum length. |
||
26 | */ |
||
27 | 4 | public function __construct($id) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 3 | public function format() |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 2 | public function asDom(DOMDocument $doc) |
|
57 | } |
||
58 |