for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KunicMarko\SonataAnnotationBundle\Annotation;
/**
* @Annotation
* @Target({"PROPERTY"})
*
* @author Marko Kunic <[email protected]>
*/
class ListAssociationField extends ListField
{
* @var string
public $field;
public function getField(): string
if ($this->field) {
return $this->field;
}
throw new \InvalidArgumentException(
sprintf(
'Argument "field" is mandatory in "%s" annotation.',
self::class
)
);