public function testCanGetSingleAnnotation() { $annotation = new MockAnnotation(); $collection = new AnnotationCollection(); $collection->addAnnotation($annotation); $this->assertSame([$annotation], $collection->get(MockAnnotation::NAME)); }
private function getBodyAnnotation() { return $this->annotations->get(Body::NAME); }