2020-03-02 16:14:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
2022-03-15 18:05:33 +08:00
|
|
|
declare(strict_types=1);
|
2020-03-02 16:14:20 +08:00
|
|
|
|
|
|
|
|
namespace Custom\Annotation;
|
|
|
|
|
|
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
2020-08-31 10:11:06 +08:00
|
|
|
use ZM\Annotation\AnnotationBase;
|
2020-03-02 16:14:20 +08:00
|
|
|
use ZM\Annotation\Interfaces\CustomAnnotation;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class CustomAnnotation
|
|
|
|
|
* @Annotation
|
|
|
|
|
* @Target("ALL")
|
|
|
|
|
*/
|
2020-08-31 10:11:06 +08:00
|
|
|
class Example extends AnnotationBase implements CustomAnnotation
|
2020-03-02 16:14:20 +08:00
|
|
|
{
|
|
|
|
|
/** @var string */
|
2020-09-29 15:07:43 +08:00
|
|
|
public $str = '';
|
2020-08-31 10:11:06 +08:00
|
|
|
}
|