for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
* @created: 22.01.15, 11:41
*/
namespace Commercetools\Core\Client\OAuth;
* @package Commercetools\Core\OAuth
class Token
{
* @var string
protected $token;
* @var \DateTime
protected $validTo;
* @var int
protected $ttl;
protected $scope;
protected $refreshToken;
public function __construct($token = null, $ttl = null, $scope = null)
$this->setToken($token)->setTtl($ttl)->setScope($scope);
}
* @return string
public function getToken()
return $this->token;
* @param string $token
* @return $this
public function setToken($token)
$this->token = $token;
return $this;
* @return \DateTime
public function getValidTo()
return $this->validTo;
* @param \DateTime $validTo
public function setValidTo(\DateTime $validTo)
$this->validTo = $validTo;
* @return int
public function getTtl()
return $this->ttl;
* @param int $ttl
public function setTtl($ttl)
$this->ttl = $ttl;
public function getScope()
return $this->scope;
* @param string $scope
public function setScope($scope)
$this->scope = $scope;
public function getRefreshToken()
return $this->refreshToken;
* @param string $refreshToken
public function setRefreshToken($refreshToken)
$this->refreshToken = $refreshToken;