/**
  * @param Comment $comment
  * @param AnnotationMetadata $metadata
  */
 private function collectDefaultAttributeMetadata(Comment $comment, AnnotationMetadata $metadata)
 {
     //@DefaultAttribute
     if ($comment->has('DefaultAttribute')) {
         $metadata->defaultAttribute = $comment->get('DefaultAttribute');
     }
 }
Exemple #2
0
 /**
  * @expectedException \OutOfBoundsException
  * @expectedExceptionMessage Comment does not have @tag annotation.
  */
 public function testGetException()
 {
     $comment = new Comment('');
     $comment->get('tag');
 }