2012-11-22 17:37:12 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* OAuth
|
|
|
|
*
|
|
|
|
* @package OAuth
|
|
|
|
* @author Andy Smith
|
|
|
|
* @author Gary Jones <gary@garyjones.co.uk>
|
2013-02-08 10:32:26 +00:00
|
|
|
* @license https://raw.github.com/jacobkiers/OAuth/master/LICENSE MIT
|
|
|
|
* @link https://github.com/jacobkiers/OAuth
|
2012-11-22 17:37:12 +00:00
|
|
|
*/
|
|
|
|
|
2013-02-11 14:02:14 +00:00
|
|
|
namespace JacobKiers\OAuth\Token;
|
2012-11-22 17:37:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Token holds the properties of a single token.
|
|
|
|
*
|
|
|
|
* This class deals with both temporary (request) and token (access) credntials.
|
|
|
|
*
|
|
|
|
* @package OAuth
|
|
|
|
* @author Gary Jones <gary@garyjones.co.uk>
|
|
|
|
*/
|
|
|
|
class NullToken extends Token
|
|
|
|
{
|
|
|
|
/**
|
2013-02-11 14:02:14 +00:00
|
|
|
* Constructs a new Token object and populates the required parameters.
|
2012-11-22 17:37:12 +00:00
|
|
|
*
|
2013-02-11 14:02:14 +00:00
|
|
|
* @param string $key Token key / identifier.
|
|
|
|
* @param string $secret Token shared-secret.
|
2012-11-22 17:37:12 +00:00
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->setKey('');
|
|
|
|
$this->setSecret('');
|
|
|
|
}
|
|
|
|
}
|