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