StaticReflectionClass.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. <?php
  2. namespace Doctrine\Common\Reflection;
  3. use ReflectionClass;
  4. use ReflectionException;
  5. class StaticReflectionClass extends ReflectionClass
  6. {
  7. /**
  8. * The static reflection parser object.
  9. *
  10. * @var StaticReflectionParser
  11. */
  12. private $staticReflectionParser;
  13. public function __construct(StaticReflectionParser $staticReflectionParser)
  14. {
  15. $this->staticReflectionParser = $staticReflectionParser;
  16. }
  17. /**
  18. * {@inheritDoc}
  19. */
  20. public function getName()
  21. {
  22. return $this->staticReflectionParser->getClassName();
  23. }
  24. /**
  25. * {@inheritDoc}
  26. */
  27. public function getDocComment()
  28. {
  29. return $this->staticReflectionParser->getDocComment();
  30. }
  31. /**
  32. * {@inheritDoc}
  33. */
  34. public function getNamespaceName()
  35. {
  36. return $this->staticReflectionParser->getNamespaceName();
  37. }
  38. /**
  39. * @return string[]
  40. */
  41. public function getUseStatements()
  42. {
  43. return $this->staticReflectionParser->getUseStatements();
  44. }
  45. /**
  46. * {@inheritDoc}
  47. */
  48. public function getMethod($name)
  49. {
  50. return $this->staticReflectionParser->getReflectionMethod($name);
  51. }
  52. /**
  53. * {@inheritDoc}
  54. */
  55. public function getProperty($name)
  56. {
  57. return $this->staticReflectionParser->getReflectionProperty($name);
  58. }
  59. /**
  60. * {@inheritDoc}
  61. */
  62. public static function export($argument, $return = false)
  63. {
  64. throw new ReflectionException('Method not implemented');
  65. }
  66. /**
  67. * {@inheritDoc}
  68. */
  69. public function getConstant($name)
  70. {
  71. throw new ReflectionException('Method not implemented');
  72. }
  73. /**
  74. * {@inheritDoc}
  75. */
  76. public function getConstants()
  77. {
  78. throw new ReflectionException('Method not implemented');
  79. }
  80. /**
  81. * {@inheritDoc}
  82. */
  83. public function getConstructor()
  84. {
  85. throw new ReflectionException('Method not implemented');
  86. }
  87. /**
  88. * {@inheritDoc}
  89. */
  90. public function getDefaultProperties()
  91. {
  92. throw new ReflectionException('Method not implemented');
  93. }
  94. /**
  95. * {@inheritDoc}
  96. */
  97. public function getEndLine()
  98. {
  99. throw new ReflectionException('Method not implemented');
  100. }
  101. /**
  102. * {@inheritDoc}
  103. */
  104. public function getExtension()
  105. {
  106. throw new ReflectionException('Method not implemented');
  107. }
  108. /**
  109. * {@inheritDoc}
  110. */
  111. public function getExtensionName()
  112. {
  113. throw new ReflectionException('Method not implemented');
  114. }
  115. /**
  116. * {@inheritDoc}
  117. */
  118. public function getFileName()
  119. {
  120. throw new ReflectionException('Method not implemented');
  121. }
  122. /**
  123. * {@inheritDoc}
  124. */
  125. public function getInterfaceNames()
  126. {
  127. throw new ReflectionException('Method not implemented');
  128. }
  129. /**
  130. * {@inheritDoc}
  131. */
  132. public function getInterfaces()
  133. {
  134. throw new ReflectionException('Method not implemented');
  135. }
  136. /**
  137. * {@inheritDoc}
  138. */
  139. public function getMethods($filter = null)
  140. {
  141. throw new ReflectionException('Method not implemented');
  142. }
  143. /**
  144. * {@inheritDoc}
  145. */
  146. public function getModifiers()
  147. {
  148. throw new ReflectionException('Method not implemented');
  149. }
  150. /**
  151. * {@inheritDoc}
  152. */
  153. public function getParentClass()
  154. {
  155. throw new ReflectionException('Method not implemented');
  156. }
  157. /**
  158. * {@inheritDoc}
  159. */
  160. public function getProperties($filter = null)
  161. {
  162. throw new ReflectionException('Method not implemented');
  163. }
  164. /**
  165. * {@inheritDoc}
  166. */
  167. public function getShortName()
  168. {
  169. throw new ReflectionException('Method not implemented');
  170. }
  171. /**
  172. * {@inheritDoc}
  173. */
  174. public function getStartLine()
  175. {
  176. throw new ReflectionException('Method not implemented');
  177. }
  178. /**
  179. * {@inheritDoc}
  180. */
  181. public function getStaticProperties()
  182. {
  183. throw new ReflectionException('Method not implemented');
  184. }
  185. /**
  186. * {@inheritDoc}
  187. */
  188. public function getStaticPropertyValue($name, $default = '')
  189. {
  190. throw new ReflectionException('Method not implemented');
  191. }
  192. /**
  193. * {@inheritDoc}
  194. */
  195. public function getTraitAliases()
  196. {
  197. throw new ReflectionException('Method not implemented');
  198. }
  199. /**
  200. * {@inheritDoc}
  201. */
  202. public function getTraitNames()
  203. {
  204. throw new ReflectionException('Method not implemented');
  205. }
  206. /**
  207. * {@inheritDoc}
  208. */
  209. public function getTraits()
  210. {
  211. throw new ReflectionException('Method not implemented');
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function hasConstant($name)
  217. {
  218. throw new ReflectionException('Method not implemented');
  219. }
  220. /**
  221. * {@inheritDoc}
  222. */
  223. public function hasMethod($name)
  224. {
  225. throw new ReflectionException('Method not implemented');
  226. }
  227. /**
  228. * {@inheritDoc}
  229. */
  230. public function hasProperty($name)
  231. {
  232. throw new ReflectionException('Method not implemented');
  233. }
  234. /**
  235. * {@inheritDoc}
  236. */
  237. public function implementsInterface($interface)
  238. {
  239. throw new ReflectionException('Method not implemented');
  240. }
  241. /**
  242. * {@inheritDoc}
  243. */
  244. public function inNamespace()
  245. {
  246. throw new ReflectionException('Method not implemented');
  247. }
  248. /**
  249. * {@inheritDoc}
  250. */
  251. public function isAbstract()
  252. {
  253. throw new ReflectionException('Method not implemented');
  254. }
  255. /**
  256. * {@inheritDoc}
  257. */
  258. public function isCloneable()
  259. {
  260. throw new ReflectionException('Method not implemented');
  261. }
  262. /**
  263. * {@inheritDoc}
  264. */
  265. public function isFinal()
  266. {
  267. throw new ReflectionException('Method not implemented');
  268. }
  269. /**
  270. * {@inheritDoc}
  271. */
  272. public function isInstance($object)
  273. {
  274. throw new ReflectionException('Method not implemented');
  275. }
  276. /**
  277. * {@inheritDoc}
  278. */
  279. public function isInstantiable()
  280. {
  281. throw new ReflectionException('Method not implemented');
  282. }
  283. /**
  284. * {@inheritDoc}
  285. */
  286. public function isInterface()
  287. {
  288. throw new ReflectionException('Method not implemented');
  289. }
  290. /**
  291. * {@inheritDoc}
  292. */
  293. public function isInternal()
  294. {
  295. throw new ReflectionException('Method not implemented');
  296. }
  297. /**
  298. * {@inheritDoc}
  299. */
  300. public function isIterateable()
  301. {
  302. throw new ReflectionException('Method not implemented');
  303. }
  304. /**
  305. * {@inheritDoc}
  306. */
  307. public function isSubclassOf($class)
  308. {
  309. throw new ReflectionException('Method not implemented');
  310. }
  311. /**
  312. * {@inheritDoc}
  313. */
  314. public function isTrait()
  315. {
  316. throw new ReflectionException('Method not implemented');
  317. }
  318. /**
  319. * {@inheritDoc}
  320. */
  321. public function isUserDefined()
  322. {
  323. throw new ReflectionException('Method not implemented');
  324. }
  325. /**
  326. * {@inheritDoc}
  327. */
  328. public function newInstance($args)
  329. {
  330. throw new ReflectionException('Method not implemented');
  331. }
  332. /**
  333. * {@inheritDoc}
  334. */
  335. public function newInstanceArgs(array $args = [])
  336. {
  337. throw new ReflectionException('Method not implemented');
  338. }
  339. /**
  340. * {@inheritDoc}
  341. */
  342. public function newInstanceWithoutConstructor()
  343. {
  344. throw new ReflectionException('Method not implemented');
  345. }
  346. /**
  347. * {@inheritDoc}
  348. */
  349. public function setStaticPropertyValue($name, $value)
  350. {
  351. throw new ReflectionException('Method not implemented');
  352. }
  353. /**
  354. * {@inheritDoc}
  355. */
  356. public function __toString()
  357. {
  358. throw new ReflectionException('Method not implemented');
  359. }
  360. }