1: <?php
2: /**
3: * @copyright 2012-2013 Rackspace Hosting, Inc.
4: * See COPYING for licensing information
5: * @package phpOpenCloud
6: * @version 1.5.9
7: * @author Glen Campbell <glen.campbell@rackspace.com>
8: * @author Jamie Hannaford <jamie.hannaford@rackspace.co.uk>
9: */
10:
11: /**
12: * Represents a sub-user in Keystone.
13: *
14: * @link http://docs.rackspace.com/auth/api/v2.0/auth-client-devguide/content/User_Calls.html
15: *
16: * @codeCoverageIgnore
17: */
18: class User extends PersistentObject
19: {
20:
21: public static function factory($info)
22: {
23: $user = new self;
24: }
25:
26: /**
27: * Return detailed information about a specific user, by either user name or user ID.
28: * @param int|string $info
29: */
30: public function get($info)
31: {
32: if (is_integer($info)) {
33:
34: } elseif (is_string($info)) {
35:
36: } else {
37: throw new Exception\IdentityException(sprintf(
38: 'A string-based username or an integer-based user ID is valid'
39: ));
40: }
41: }
42:
43: public function create()
44: {
45:
46: }
47:
48: public function update()
49: {
50:
51: }
52:
53: public function delete()
54: {
55:
56: }
57:
58: public function listAllCredentials()
59: {
60:
61: }
62:
63: public function getCredentials()
64: {
65:
66: }
67:
68: public function resetApiKey()
69: {
70:
71: }
72:
73: }