for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PH\Bundle\PayumBundle\Model;
use Payum\Core\Security\TokenInterface;
use Payum\Core\Security\Util\Random;
use Payum\Core\Storage\IdentityInterface;
use Sylius\Component\Resource\Model\ResourceInterface;
class PaymentSecurityToken implements ResourceInterface, TokenInterface
{
/**
* @var string
*/
protected $hash;
* @var IdentityInterface
protected $details;
protected $afterUrl;
protected $targetUrl;
protected $gatewayName;
public function __construct()
$this->hash = Random::generateToken();
}
* {@inheritdoc}
public function getId()
return $this->hash;
public function setDetails($details)
$this->details = $details;
*
* @return IdentityInterface|null
public function getDetails()
return $this->details;
public function getHash()
public function setHash($hash)
$this->hash = $hash;
public function getTargetUrl()
return $this->targetUrl;
public function setTargetUrl($targetUrl)
$this->targetUrl = $targetUrl;
public function getAfterUrl()
return $this->afterUrl;
public function setAfterUrl($afterUrl)
$this->afterUrl = $afterUrl;
public function getGatewayName()
return $this->gatewayName;
public function setGatewayName($gatewayName)
$this->gatewayName = $gatewayName;