| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class Account |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Genkgo\Camt\DTO\AccountOwner|null |
||
| 11 | */ |
||
| 12 | private $owner; |
||
| 13 | /** |
||
| 14 | * @var \Genkgo\Camt\DTO\AccountServicer|null |
||
| 15 | */ |
||
| 16 | private $servicer; |
||
| 17 | /** |
||
| 18 | * @var \Money\Currency|null |
||
| 19 | */ |
||
| 20 | private $currency; |
||
| 21 | |||
| 22 | abstract public function getIdentification(): string; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return \Genkgo\Camt\DTO\AccountOwner|null |
||
| 26 | */ |
||
| 27 | public function getOwner(): ?\Genkgo\Camt\DTO\AccountOwner |
||
| 28 | { |
||
| 29 | return $this->owner; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param \Genkgo\Camt\DTO\AccountOwner|null $owner |
||
| 34 | */ |
||
| 35 | 18 | public function setOwner(\Genkgo\Camt\DTO\AccountOwner $owner): void |
|
| 36 | { |
||
| 37 | 18 | $this->owner = $owner; |
|
| 38 | 18 | } |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return \Genkgo\Camt\DTO\AccountServicer|null |
||
| 42 | */ |
||
| 43 | public function getServicer(): ?\Genkgo\Camt\DTO\AccountServicer |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param \Genkgo\Camt\DTO\AccountServicer|null $servicer |
||
| 50 | */ |
||
| 51 | 18 | public function setServicer(\Genkgo\Camt\DTO\AccountServicer $servicer): void |
|
| 52 | { |
||
| 53 | 18 | $this->servicer = $servicer; |
|
| 54 | 18 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return \Money\Currency|null |
||
| 58 | */ |
||
| 59 | public function getCurrency(): ?\Money\Currency |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param \Money\Currency $currency |
||
| 66 | */ |
||
| 67 | 10 | public function setCurrency(\Money\Currency $currency): void |
|
| 72 |