Failed Conditions
Push — master ( 2fcedf...efe7fa )
by Guillermo A.
01:42
created

Account::update()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Guillermoandrae\Highrise\Resources;
4
5
use BadMethodCallException;
6
use Guillermoandrae\Common\CollectionInterface;
7
8
class Account extends AbstractResource
9
{
10
    use UnsearchableResourceTrait, ReadOnlyResourceTrait;
11
12
    protected $name = 'account';
13
14
    /**
15
     * Returns account information.
16 1
     *
17
     * @return array
18 1
     */
19 1
    public function show(): array
20
    {
21
        return $this->getAdapter()->request('GET', '/account.xml');
22 1
    }
23
24 1
    public function find($id): array
25
    {
26
        throw new BadMethodCallException(
27 1
            'The find method of this resource is not supported.'
28
        );
29 1
    }
30
31
    public function findAll(array $options = []): CollectionInterface
32 1
    {
33
        throw new BadMethodCallException(
34 1
            'The findAll method of this resource is not supported.'
35
        );
36
    }
37
}
38