| @@ 8-27 (lines=20) @@ | ||
| 5 | /** |
|
| 6 | * Plusgiroi account number factory |
|
| 7 | */ |
|
| 8 | class BankgiroFactory extends AccountFactory implements BankNames |
|
| 9 | { |
|
| 10 | public function __construct() |
|
| 11 | { |
|
| 12 | $formats = (new Formats)->createFormats(); |
|
| 13 | parent::__construct([self::FORMAT_BANKGIRO => $formats[self::FORMAT_BANKGIRO]]); |
|
| 14 | } |
|
| 15 | ||
| 16 | /** |
|
| 17 | * Create bankgiro account object using number |
|
| 18 | * |
|
| 19 | * @param string $number |
|
| 20 | * @return Bankgiro |
|
| 21 | * @throws Exception\UnableToCreateAccountException If unable to create |
|
| 22 | */ |
|
| 23 | public function createAccount($number) |
|
| 24 | { |
|
| 25 | return parent::createAccount($number); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| @@ 8-27 (lines=20) @@ | ||
| 5 | /** |
|
| 6 | * Plusgiroi account number factory |
|
| 7 | */ |
|
| 8 | class PlusgiroFactory extends AccountFactory implements BankNames |
|
| 9 | { |
|
| 10 | public function __construct() |
|
| 11 | { |
|
| 12 | $formats = (new Formats)->createFormats(); |
|
| 13 | parent::__construct([self::FORMAT_PLUSGIRO => $formats[self::FORMAT_PLUSGIRO]]); |
|
| 14 | } |
|
| 15 | ||
| 16 | /** |
|
| 17 | * Create plusgiro account object using number |
|
| 18 | * |
|
| 19 | * @param string $number |
|
| 20 | * @return PlusGiro |
|
| 21 | * @throws Exception\UnableToCreateAccountException If unable to create |
|
| 22 | */ |
|
| 23 | public function createAccount($number) |
|
| 24 | { |
|
| 25 | return parent::createAccount($number); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||