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