1 | <?php |
||
38 | class User extends AttributeHolder |
||
39 | { |
||
40 | /** |
||
41 | * @var Context A Context instance. |
||
42 | */ |
||
43 | protected $context = null; |
||
44 | |||
45 | /** |
||
46 | * @var string Storage namespace where user attributes are put. |
||
47 | */ |
||
48 | protected $storageNamespace = 'org.agavi.user.User'; |
||
49 | |||
50 | /** |
||
51 | * Retrieve the current application context. |
||
52 | * |
||
53 | * @return Context A Context instance. |
||
54 | * |
||
55 | * @author Sean Kerr <[email protected]> |
||
56 | * @since 0.9.0 |
||
57 | */ |
||
58 | final public function getContext() |
||
62 | |||
63 | /** |
||
64 | * Retrieve the Storage namespace |
||
65 | * |
||
66 | * @return string The Storage namespace |
||
67 | * |
||
68 | * @author David Zülke <[email protected]> |
||
69 | * @since 0.11.0 |
||
70 | */ |
||
71 | public function getStorageNamespace() |
||
75 | |||
76 | /** |
||
77 | * Initialize this User. |
||
78 | * |
||
79 | * @param Context $context An Context instance. |
||
80 | * @param array $parameters An associative array of initialization parameters. |
||
81 | * |
||
82 | * @throws InitializationException If an error occurs while |
||
83 | * initializing this User. |
||
84 | * |
||
85 | * @author Sean Kerr <[email protected]> |
||
86 | * @author David Zülke <[email protected]> |
||
87 | * @since 0.9.0 |
||
88 | */ |
||
89 | public function initialize(Context $context, array $parameters = array()) |
||
111 | |||
112 | /** |
||
113 | * Startup the user. |
||
114 | * |
||
115 | * You'd usually try to auth from a cookie here etc. |
||
116 | * |
||
117 | * @author David Zülke <[email protected]> |
||
118 | * @since 0.11.0 |
||
119 | */ |
||
120 | public function startup() |
||
123 | |||
124 | /** |
||
125 | * Execute the shutdown procedure. |
||
126 | * |
||
127 | * @author Sean Kerr <[email protected]> |
||
128 | * @since 0.9.0 |
||
129 | */ |
||
130 | public function shutdown() |
||
135 | } |
||
136 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..