Total Complexity | 8 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | class CreatePaymentResponse extends ResponseEntity |
||
28 | { |
||
29 | /** @var string $redirectUrl */ |
||
30 | protected $redirectUrl; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function getRequired() |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function isValid() |
||
47 | { |
||
48 | return parent::isValid() && |
||
49 | ($this->call instanceof CallEntity && $this->call->isValid()) && |
||
50 | ($this->result instanceof ResultEntity && $this->result->isValid() || !$this->result) |
||
51 | ; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function setCall($call) |
||
60 | } |
||
61 | } |
||
62 |