for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Slince shipment tracker library
* @author Tao <[email protected]>
*/
namespace Slince\ShipmentTracking\DHLECommerce;
final class AccessToken
{
* @var string
protected $token;
* @var int
protected $expiresIn;
protected $type;
public function __construct($token, $type = null, $expiresIn = null)
$this->token = $token;
$this->type = $type;
$this->expiresIn = $expiresIn;
}
public function __toString()
return $this->token;
* @return string
public function getToken()
* @param string $token
* @return AccessToken
public function setToken($token)
return $this;
* @return int
public function getExpiresIn()
return $this->expiresIn;
* @param int $expiresIn
public function setExpiresIn($expiresIn)
public function getType()
return $this->type;
* @param string $type
public function setType($type)