1: <?php
2:
3: namespace Genetsis\core;
4:
5: /**
6: * This class stores "refresh_token" data.
7: *
8: * @package Genetsis
9: * @category Bean
10: * @version 1.0
11: * @access public
12: * @since 2011-09-08
13: */
14: class RefreshToken extends StoredToken
15: {
16: /**
17: * @param string The token value.
18: * @param integer Number the seconds until the token expires.
19: * @param integer Date when the token expires. As UNIX timestamp.
20: * @param string Full path to the folder where cookies will be saved.
21: * Only if necessary.
22: */
23: public function __construct($value, $expires_in = 0, $expires_at = 0, $path = '/')
24: {
25: parent::__construct($value, $expires_in, $expires_at, $path);
26: }
27:
28: /**
29: * Sets token name.
30: *
31: * @return void
32: * @see iTokenTypes
33: */
34: protected function setName()
35: {
36: $this->name = iTokenTypes::REFRESH_TOKEN;
37: }
38: }