| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 44 | public function addAccount(string $alias, FioAccount $account): AccountCollection |
||
| 45 | { |
||
| 46 | if (isset($this->accounts[$alias])) { |
||
| 47 | throw new Exceptions\InvalidArgument('This alias already exists: ' . $alias); |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->accounts[$alias] = $account; |
||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 67 |