vendor/doctrine/orm/src/Mapping/GeneratedValue.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Mapping;
  4. use Attribute;
  5. use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
  6. /**
  7.  * @Annotation
  8.  * @NamedArgumentConstructor()
  9.  * @Target("PROPERTY")
  10.  */
  11. #[Attribute(Attribute::TARGET_PROPERTY)]
  12. final class GeneratedValue implements MappingAttribute
  13. {
  14.     /**
  15.      * The type of ID generator.
  16.      *
  17.      * @var string
  18.      * @phpstan-var 'AUTO'|'SEQUENCE'|'IDENTITY'|'NONE'|'CUSTOM'
  19.      * @readonly
  20.      * @Enum({"AUTO", "SEQUENCE", "TABLE", "IDENTITY", "NONE", "UUID", "CUSTOM"})
  21.      */
  22.     public $strategy 'AUTO';
  23.     /** @phpstan-param 'AUTO'|'SEQUENCE'|'IDENTITY'|'NONE'|'CUSTOM' $strategy */
  24.     public function __construct(string $strategy 'AUTO')
  25.     {
  26.         $this->strategy $strategy;
  27.     }
  28. }