public function testIfWillProperlyAnnotateTraitProperty() { $info = new ReflectionAnnotatedProperty(TraitWithLabels::class, 'title'); $builder = new Builder(); $annotations = $builder->build($info); $this->assertTrue($annotations->hasAnnotation('Label')); }
/** * Clear entire annotations cache. */ public static function cacheClear() { self::$annotations = []; self::$classNames = []; Blacklister::reset(); Builder::clearCache(); (new MetaCache())->clear(); }
protected function process($result) { $builder = new Builder(); return $builder->instantiateAnnotation($result[1], $result[2]); }