Builder
9 months ago
Driver
9 months ago
Exception
9 months ago
Reflection
9 months ago
Annotation.php
9 months ago
AnsiQuoteStrategy.php
9 months ago
AssociationOverride.php
9 months ago
AssociationOverrides.php
9 months ago
AttributeOverride.php
9 months ago
AttributeOverrides.php
9 months ago
Cache.php
9 months ago
ChainTypedFieldMapper.php
9 months ago
ChangeTrackingPolicy.php
9 months ago
ClassMetadata.php
9 months ago
ClassMetadataFactory.php
9 months ago
ClassMetadataInfo.php
9 months ago
Column.php
9 months ago
ColumnResult.php
9 months ago
CustomIdGenerator.php
9 months ago
DefaultEntityListenerResolver.php
9 months ago
DefaultNamingStrategy.php
9 months ago
DefaultQuoteStrategy.php
9 months ago
DefaultTypedFieldMapper.php
9 months ago
DiscriminatorColumn.php
9 months ago
DiscriminatorMap.php
9 months ago
Embeddable.php
9 months ago
Embedded.php
9 months ago
Entity.php
9 months ago
EntityListenerResolver.php
9 months ago
EntityListeners.php
9 months ago
EntityResult.php
9 months ago
FieldResult.php
9 months ago
GeneratedValue.php
9 months ago
HasLifecycleCallbacks.php
9 months ago
Id.php
9 months ago
Index.php
9 months ago
InheritanceType.php
9 months ago
InverseJoinColumn.php
9 months ago
JoinColumn.php
9 months ago
JoinColumnProperties.php
9 months ago
JoinColumns.php
9 months ago
JoinTable.php
9 months ago
ManyToMany.php
9 months ago
ManyToOne.php
9 months ago
MappedSuperclass.php
9 months ago
MappingAttribute.php
9 months ago
MappingException.php
9 months ago
NamedNativeQueries.php
9 months ago
NamedNativeQuery.php
9 months ago
NamedQueries.php
9 months ago
NamedQuery.php
9 months ago
NamingStrategy.php
9 months ago
OneToMany.php
9 months ago
OneToOne.php
9 months ago
OrderBy.php
9 months ago
PostLoad.php
9 months ago
PostPersist.php
9 months ago
PostRemove.php
9 months ago
PostUpdate.php
9 months ago
PreFlush.php
9 months ago
PrePersist.php
9 months ago
PreRemove.php
9 months ago
PreUpdate.php
9 months ago
QuoteStrategy.php
9 months ago
ReflectionEmbeddedProperty.php
9 months ago
ReflectionEnumProperty.php
9 months ago
ReflectionReadonlyProperty.php
9 months ago
SequenceGenerator.php
9 months ago
SqlResultSetMapping.php
9 months ago
SqlResultSetMappings.php
9 months ago
Table.php
9 months ago
TypedFieldMapper.php
9 months ago
UnderscoreNamingStrategy.php
9 months ago
UniqueConstraint.php
9 months ago
Version.php
9 months ago
Column.php
41 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Mapping; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use Attribute; |
| 6 | use BackedEnum; |
| 7 | use MailPoetVendor\Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor; |
| 8 | #[\Attribute(Attribute::TARGET_PROPERTY)] |
| 9 | final class Column implements MappingAttribute |
| 10 | { |
| 11 | public $name; |
| 12 | public $type; |
| 13 | public $length; |
| 14 | public $precision = 0; |
| 15 | public $scale = 0; |
| 16 | public $unique = \false; |
| 17 | public $nullable = \false; |
| 18 | public $insertable = \true; |
| 19 | public $updatable = \true; |
| 20 | public $enumType = null; |
| 21 | public $options = []; |
| 22 | public $columnDefinition; |
| 23 | public $generated; |
| 24 | public function __construct(?string $name = null, ?string $type = null, ?int $length = null, ?int $precision = null, ?int $scale = null, bool $unique = \false, bool $nullable = \false, bool $insertable = \true, bool $updatable = \true, ?string $enumType = null, array $options = [], ?string $columnDefinition = null, ?string $generated = null) |
| 25 | { |
| 26 | $this->name = $name; |
| 27 | $this->type = $type; |
| 28 | $this->length = $length; |
| 29 | $this->precision = $precision; |
| 30 | $this->scale = $scale; |
| 31 | $this->unique = $unique; |
| 32 | $this->nullable = $nullable; |
| 33 | $this->insertable = $insertable; |
| 34 | $this->updatable = $updatable; |
| 35 | $this->enumType = $enumType; |
| 36 | $this->options = $options; |
| 37 | $this->columnDefinition = $columnDefinition; |
| 38 | $this->generated = $generated; |
| 39 | } |
| 40 | } |
| 41 |