1: <?php
2: namespace Genetsis\core;
3:
4: /**
5: * This class stores "client_token" data.
6: *
7: * @package Genetsis
8: * @category Bean
9: * @version 1.0
10: * @access public
11: * @since 2011-09-08
12: */
13: class ClientToken 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: * Sets token name.
28: *
29: * @return void
30: * @see iTokenTypes
31: */
32: protected function setName()
33: {
34: $this->name = iTokenTypes::CLIENT_TOKEN;
35: }
36: }