Passed
Push — master ( 30757a...03f32c )
by Gabriel
11:44
created

AbstractResponse::isSuccessful()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Paytic\Omnipay\Paylike\Message;
4
5
use Paytic\Omnipay\Common\Message\Traits\DataAccessorsTrait;
6
use Omnipay\Common\Message\AbstractResponse as CommonAbstractResponse;
7
8
/**
9
 * Class Response
10
 * @package Paytic\Omnipay\Paylike\Message
11
 */
12
abstract class AbstractResponse extends CommonAbstractResponse
13
{
14
    use DataAccessorsTrait;
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function isSuccessful()
20
    {
21
        return
22
            isset($this->data['success'])
23
            && $this->data['success'];
24
    }
25
}
26