/** * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { /* @var TypeSchema $typeSchema */ $typeSchema = $options['mao']->typeSchema(); foreach ($typeSchema->getDefinitions() as $fieldName => $definition) { switch ((string) $definition->type()) { case Type::text(): $this->buildTextType($builder, $options, $fieldName, $definition); break; case Type::bool(): $this->buildBoolType($builder, $options, $fieldName, $definition); break; } } }
/** * @return Type */ public function type() : Type { return Type::decimal(); }
/** * @return Type */ public function type() : Type { return Type::integer(); }
/** * @return Type */ public function type() : Type { return Type::association(); }
/** * @param Type $type * * @return bool */ public function maps(Type $type) : bool { return Type::float()->isEqual($type); }
/** * @param Type $type * * @return bool */ public function maps(Type $type) : bool { return $this->type->isEqual($type); }
/** * @return Type */ public function type() : Type { return Type::text(); }
/** * @param Type $type * @return bool */ public function maps(Type $type) : bool { return Type::dateTime()->isEqual($type); }
/** * @param Type $type * * @return bool */ public function maps(Type $type) : bool { return Type::integer()->isEqual($type); }
/** * @return Type */ public function type() : Type { return Type::float(); }
/** * @return Type */ public function type() : Type { return Type::map(); }
/** * @return Type */ public function type() : Type { return Type::dateTime(); }
/** * @param Type $type * * @return bool */ public function maps(Type $type) : bool { return Type::decimal()->isEqual($type); }
/** * @return Type */ public function type() : Type { return Type::bool(); }