1 | <?php |
||
36 | class LocalProxy implements RemoteObjectInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The bean manager instance. |
||
41 | * |
||
42 | * @var \AppserverIo\Psr\EnterpriseBeans\BeanContextInterface |
||
43 | */ |
||
44 | protected $beanManager; |
||
45 | |||
46 | /** |
||
47 | * The session bean descriptor. |
||
48 | * |
||
49 | * @var \AppserverIo\Psr\EnterpriseBeans\Description\SessionBeanDescriptorInterface |
||
50 | */ |
||
51 | protected $sessionBeanDescriptor; |
||
52 | |||
53 | /** |
||
54 | * The session been that has to be proxied. |
||
55 | * |
||
56 | * @var object |
||
57 | */ |
||
58 | protected $sessionBean; |
||
59 | |||
60 | /** |
||
61 | * The actual session ID. |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $sessionId; |
||
66 | |||
67 | /** |
||
68 | * Initialize the local proxy. |
||
69 | * |
||
70 | * @param \AppserverIo\Psr\EnterpriseBeans\BeanContextInterface $beanManager The bean manager instance |
||
71 | * @param \AppserverIo\Psr\EnterpriseBeans\Description\SessionBeanDescriptorInterface $sessionBeanDescriptor The session bean descriptor |
||
72 | * @param object $sessionBean The session been that has to be proxied |
||
73 | * @param string $sessionId The actual session ID |
||
74 | */ |
||
75 | 4 | public function __construct( |
|
86 | |||
87 | /** |
||
88 | * Sets the session with the connection instance. |
||
89 | * |
||
90 | * @param \AppserverIo\RemoteMethodInvocation\SessionInterface $session The session instance to use |
||
91 | * |
||
92 | * @return \AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The instance itself |
||
93 | */ |
||
94 | 1 | public function __setSession(SessionInterface $session) |
|
98 | |||
99 | /** |
||
100 | * Returns the session instance. |
||
101 | * |
||
102 | * @return \AppserverIo\RemoteMethodInvocation\SessionInterface The session instance |
||
103 | */ |
||
104 | 1 | public function __getSession() |
|
108 | |||
109 | /** |
||
110 | * The name of the original object. |
||
111 | * |
||
112 | * @return string The name of the original object |
||
113 | */ |
||
114 | 1 | public function __getClassName() |
|
118 | |||
119 | /** |
||
120 | * Invokes the local execution of the passed remote method. |
||
121 | * |
||
122 | * @param string $method The local method to call |
||
123 | * @param array $params The parameters for the method call |
||
124 | * |
||
125 | * @return mixed The result of the local method call |
||
126 | */ |
||
127 | 1 | public function __call($method, $params) |
|
153 | } |
||
154 |
This check looks for variables that are accessed but have not been defined. It raises an issue if it finds another variable that has a similar name.
The variable may have been renamed without also renaming all references.