Completed
Push — master ( 776d7c...a21d65 )
by Luke
03:03
created

BranchMethod::sendUpdate()   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 1
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 ZpgRtf\Methods;
4
5
use ZpgRtf\Objects\BranchObject;
6
7
/**
8
 * The branch method allows you to update a branch.
9
 */
10
class BranchMethod extends AbstractMethod
11
{
12
    /** @var string */
13
    const UPDATE_SCHEMA = 'http://realtime-listings.webservices.zpg.co.uk/docs/v1.2/schemas/branch/update.json';
14
15
    /**
16
     * @return \GuzzleHttp\Psr7\Response
17
     */
18 2
    public function sendUpdate(BranchObject $branchObject)
19
    {
20 2
        return $this->validateAndSend(self::UPDATE_SCHEMA, 'branch/update', $branchObject);
21
    }
22
}
23