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\Sonata;
use Attribute;
use Neimheadh\SonataAnnotationBundle\Annotation\AbstractAnnotation;
use Neimheadh\SonataAnnotationBundle\Annotation\ArrayAnnotationTrait;
use ReflectionException;
/**
* Export formats annotation.
*
* @Annotation
* @Target("CLASS")
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class ExportFormats extends AbstractAnnotation
{
use ArrayAnnotationTrait;
* Exported formats.
* @var array
private array $formats = [];
$formats
* @param array|string|null $formats Exported formats or annotation
* parameters.
* @throws ReflectionException
public function __construct(
$formats = []
) {
$this->setArrayProperty('formats', $formats);
}