| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class AccountRepository extends AbstractRepository |
||
| 12 | { |
||
| 13 | use UnsearchableRepositoryTrait, ReadOnlyRepositoryTrait { |
||
| 14 | UnsearchableRepositoryTrait::callUnsupportedMethod insteadof ReadOnlyRepositoryTrait; |
||
| 15 | } |
||
| 16 | |||
| 17 | protected $name = 'account'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Returns account information. |
||
| 21 | * |
||
| 22 | * @return ModelInterface |
||
| 23 | */ |
||
| 24 | public function show(): ModelInterface |
||
| 25 | { |
||
| 26 | $result = $this->getAdapter()->request('GET', '/account.xml'); |
||
| 27 | return $this->hydrate($result); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function findById($id): BaseModelInterface |
||
| 33 | } |
||
| 34 | |||
| 35 | public function findAll(int $offset = 0, int $limit = null): CollectionInterface |
||
| 40 |