Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function fill(Builder $builder)
 {
     $class = $builder->getClass();
     if (Util::isUserClass($class) && class_exists($class, true)) {
         $refl = new \ReflectionClass($class);
         /** @var Annotations\Dogma $annot */
         $annot = $this->reader->getClassAnnotation($refl, 'Bravesheep\\Dogmatist\\Guesser\\Annotations\\Dogma');
         if (null !== $annot) {
             $builder->setStrict($annot->strict);
         }
         $this->processConstructor($refl, $builder);
         $this->processFields($refl, $builder);
     }
 }