Completed
Push — master ( 27c102...e85ee7 )
by Haralan
03:23 queued 01:27
created

CreateCardResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSuccessful() 0 6 3
1
<?php
2
3
namespace Omnipay\PaypalRest\Message;
4
5
/**
6
 * @author    Ivan Kerin <[email protected]>
7
 * @copyright 2014, Clippings Ltd.
8
 * @license   http://spdx.org/licenses/BSD-3-Clause
9
 */
10
class CreateCardResponse extends AbstractResponse
11
{
12
    /**
13
     * Return true if state is "ok"
14
     *
15
     * @return boolean
16
     */
17
    public function isSuccessful()
18
    {
19
        return (parent::isSuccessful()
20
            and isset($this->data['state'])
21
            and $this->data['state'] === 'ok');
22
    }
23
}
24