TYPO3 CMS  TYPO3_6-2
MethodReflection.php
Go to the documentation of this file.
1 <?php
3 
19 class MethodReflection extends \ReflectionMethod {
20 
24  protected $docCommentParser;
25 
32  public function __construct($className, $methodName) {
33  parent::__construct($className, $methodName);
34  }
35 
41  public function getDeclaringClass() {
42  return new \TYPO3\CMS\Extbase\Reflection\ClassReflection(parent::getDeclaringClass()->getName());
43  }
44 
52  public function getParameters() {
53  $extendedParameters = array();
54  foreach (parent::getParameters() as $parameter) {
55  $extendedParameters[] = new \TYPO3\CMS\Extbase\Reflection\ParameterReflection(array($this->getDeclaringClass()->getName(), $this->getName()), $parameter->getName());
56  }
57  return $extendedParameters;
58  }
59 
67  public function isTaggedWith($tag) {
68  $result = $this->getDocCommentParser()->isTaggedWith($tag);
69  return $result;
70  }
71 
77  public function getTagsValues() {
78  return $this->getDocCommentParser()->getTagsValues();
79  }
80 
87  public function getTagValues($tag) {
88  return $this->getDocCommentParser()->getTagValues($tag);
89  }
90 
96  public function getDescription() {
97  return $this->getDocCommentParser()->getDescription();
98  }
99 
106  protected function getDocCommentParser() {
107  if (!is_object($this->docCommentParser)) {
108  $this->docCommentParser = new \TYPO3\CMS\Extbase\Reflection\DocCommentParser();
109  $this->docCommentParser->parseDocComment($this->getDocComment());
110  }
112  }
113 }
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren&#39;t numeric.