예제 #1
0
 /**
  * @param IReflectionProperty $property
  *
  * @return string
  */
 public function writeValue(IReflectionProperty $property)
 {
     $value = '';
     if ($property->getDeclaringClass() && ($defaultProperties = $property->getDeclaringClass()->getDefaultProperties())) {
         if (!is_null($defaultProperties[$property->getName()])) {
             $value = ' = ' . $this->formatValue($defaultProperties[$property->getName()]);
         }
     }
     return $value;
 }
예제 #2
0
 /**
  * @return int
  */
 public function getEndLine()
 {
     return $this->reflection->getEndLine();
 }
예제 #3
0
 protected function getParser()
 {
     return new CommentParser($this->reflection->getDocComment());
 }