for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHP version 5.4 and 8
*
* @category ResponseEntity
* @package Payever\Payments
* @author payever GmbH <[email protected]>
* @copyright 2017-2021 payever GmbH
* @license MIT <https://opensource.org/licenses/MIT>
* @link https://docs.payever.org/shopsystems/api/getting-started
*/
namespace Payever\ExternalIntegration\Payments\Http\ResponseEntity;
use Payever\ExternalIntegration\Core\Http\MessageEntity\CallEntity;
use Payever\ExternalIntegration\Core\Http\ResponseEntity;
use Payever\ExternalIntegration\Payments\Http\MessageEntity\CreatePaymentV2CallEntity;
* This class represents Create Payment ResponseInterface Entity
* @method string getRedirectUrl()
* @method self setRedirectUrl(string $url)
class CreatePaymentV2Response extends ResponseEntity
{
/** @var string $redirectUrl */
protected $redirectUrl;
* {@inheritdoc}
public function getRequired()
return [
'call',
'redirect_url',
];
}
public function isValid()
return parent::isValid() &&
($this->call instanceof CallEntity && $this->call->isValid())
;
public function setCall($call)
$this->call = new CreatePaymentV2CallEntity($call);