for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Neimheadh\SonataAnnotationBundle\Annotation;
/**
* Field annotations main class.
*
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
abstract class AbstractField implements AnnotationInterface
{
* @var string
public string $type;
* @var array
public array $fieldDescriptionOptions = [];
* Get field settings.
* @return array
public function getSettings(): array
return [
$this->type ?? null,
$this->fieldDescriptionOptions
];
}