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("CLASS")
*
* @author Marko Kunic <[email protected]>
*/
class Route implements AnnotationInterface
{
public const ID_PARAMETER = '{id}';
private const DEFAULT_METHOD = 'add';
* @var string
public $name;
public $path;
public $method = self::DEFAULT_METHOD;
public function shouldAddRoute(): bool
return $this->method === self::DEFAULT_METHOD;
}