for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSC\PagSeguro\Requests;
use DateTime;
class Redirection
{
/**
* @var string
*/
private $code;
* @var DateTime
private $date;
private $uri;
* @param string $code
* @param DateTime $date
* @param string $uri
public function __construct($code, DateTime $date, $uri)
$this->code = $code;
$this->date = $date;
$this->uri = $uri;
}
* @return string
public function getCode()
return $this->code;
* @return DateTime
public function getDate()
return $this->date;
public function getRedirectionUrl()
return $this->uri . '?code=' . $this->getCode();