Example #1
0
 /**
  * @param \ReflectionClass|\ReflectionMethod $reflection
  * @param DocInfo $docInfo
  * @param CodeEntity $code
  */
 public function applyInfoToEntity($reflection, DocInfo $docInfo, CodeEntity $code)
 {
     $code->setName($reflection->getName());
     $code->setDescription($docInfo->getDescription());
     $code->setExample($docInfo->getExample());
     if ($docInfo->getDeprecationMessage()) {
         $code->isDeprecated(true);
         $code->setDeprecationMessage($docInfo->getDeprecationMessage());
     }
 }