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;
use ReflectionException;
/**
* Action annotations main class.
*
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
abstract class AbstractAction extends AbstractAnnotation
{
* Action template.
* @var string|null
public ?string $template = null;
* @param string|array|null $template Action template or annotation
* parameters.
* @throws ReflectionException
public function __construct(
$template = null
) {
if (is_array($template)) {
$this->initAnnotation($template);
} else {
$this->template = $template;
}