for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Psi\Component\ContentType\Standard\Field;
use Psi\Component\ContentType\FieldInterface;
use Psi\Component\ContentType\OptionsResolver\FieldOptionsResolver;
use Psi\Component\ContentType\Standard\View\ScalarView;
use Psi\Component\ContentType\Storage\ConfiguredType;
use Psi\Component\ContentType\Storage\TypeFactory;
use Symfony\Component\Form\Extension\Core\Type\TextType;
class TextField implements FieldInterface
{
public function getViewType(): string
return ScalarView::class;
}
public function getFormType(): string
return TextType::class;
public function getStorageType(TypeFactory $factory): ConfiguredType
return $factory->create('string');
public function configureOptions(FieldOptionsResolver $options)