Passed
Pull Request — master (#28)
by Manuel
02:43
created

Redirect   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUrl() 0 3 1
A isPaymentMeansRequired() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\Container;
4
5
use JMS\Serializer\Annotation\Type;
6
use JMS\Serializer\Annotation\SerializedName;
7
8
final class Redirect
9
{
10
    /**
11
     * @var string|null
12
     * @SerializedName("RedirectUrl")
13
     * @Type("string")
14
     */
15
    private $redirectUrl;
16
17
    /**
18
     * @var bool|null
19
     * @SerializedName("PaymentMeansRequired")
20
     * @Type("bool")
21
     */
22
    private $paymentMeansRequired;
23
24
    public function getRedirectUrl(): ?string
25
    {
26
        return $this->redirectUrl;
27
    }
28
29
    public function isPaymentMeansRequired(): ?bool
30
    {
31
        return $this->paymentMeansRequired;
32
    }
33
}
34