TYPO3 CMS  TYPO3_6-2
ParameterReflection.php
Go to the documentation of this file.
1 <?php
3 
19 class ParameterReflection extends \ReflectionParameter {
20 
27  public function __construct($function, $parameterName) {
28  parent::__construct($function, $parameterName);
29  }
30 
36  public function getDeclaringClass() {
37  return new \TYPO3\CMS\Extbase\Reflection\ClassReflection(parent::getDeclaringClass()->getName());
38  }
39 
45  public function getClass() {
46  try {
47  $class = parent::getClass();
48  } catch (\Exception $e) {
49  return NULL;
50  }
51  return is_object($class) ? new \TYPO3\CMS\Extbase\Reflection\ClassReflection($class->getName()) : NULL;
52  }
53 }