Failed Conditions
Pull Request — experimental/sf (#3225)
by Kentaro
58:20 queued 49:13
created

PaymentResult::getErrors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Service\Payment;
15
16
class PaymentResult
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
17
{
18
    /**
19
     * @var array
20
     */
21
    private $errors;
22
23
    /**
24
     * @var boolean
25
     */
26
    private $success;
27
28
    /**
29
     * @param boolean $success
30
     *
31
     * @return PaymentResult
32
     */
33
    public function setSuccess($success)
34
    {
35
        $this->success = $success;
36
37
        return $this;
38
    }
39
40
    /**
41
     * @return boolean
42
     */
43 7
    public function isSuccess()
44
    {
45 7
        return true;
46
    }
47
48
    /**
49
     * @return array
50
     */
51
    public function getErrors()
52
    {
53
        return [];
54
    }
55
56
    /**
57
     * @param array $errors
58
     *
59
     * @return PaymentResult
60
     */
61
    public function setErrors(array $errors)
62
    {
63
        $this->errors = $errors;
64
65
        return $this;
66
    }
67
}
68