diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Mapping/QuoteStrategy.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Mapping/QuoteStrategy.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Mapping/QuoteStrategy.php b/vendor/doctrine/orm/src/Mapping/QuoteStrategy.php new file mode 100644 index 0000000..9eb3e53 --- /dev/null +++ b/vendor/doctrine/orm/src/Mapping/QuoteStrategy.php | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Mapping; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * A set of rules for determining the column, alias and table quotes. | ||
| 11 | */ | ||
| 12 | interface QuoteStrategy | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * Gets the (possibly quoted) column name for safe use in an SQL statement. | ||
| 16 | */ | ||
| 17 | public function getColumnName(string $fieldName, ClassMetadata $class, AbstractPlatform $platform): string; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Gets the (possibly quoted) primary table name for safe use in an SQL statement. | ||
| 21 | */ | ||
| 22 | public function getTableName(ClassMetadata $class, AbstractPlatform $platform): string; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Gets the (possibly quoted) sequence name for safe use in an SQL statement. | ||
| 26 | * | ||
| 27 | * @param mixed[] $definition | ||
| 28 | */ | ||
| 29 | public function getSequenceName(array $definition, ClassMetadata $class, AbstractPlatform $platform): string; | ||
| 30 | |||
| 31 | /** Gets the (possibly quoted) name of the join table. */ | ||
| 32 | public function getJoinTableName( | ||
| 33 | ManyToManyOwningSideMapping $association, | ||
| 34 | ClassMetadata $class, | ||
| 35 | AbstractPlatform $platform, | ||
| 36 | ): string; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Gets the (possibly quoted) join column name. | ||
| 40 | */ | ||
| 41 | public function getJoinColumnName(JoinColumnMapping $joinColumn, ClassMetadata $class, AbstractPlatform $platform): string; | ||
| 42 | |||
| 43 | /** | ||
| 44 | * Gets the (possibly quoted) join column name. | ||
| 45 | */ | ||
| 46 | public function getReferencedJoinColumnName( | ||
| 47 | JoinColumnMapping $joinColumn, | ||
| 48 | ClassMetadata $class, | ||
| 49 | AbstractPlatform $platform, | ||
| 50 | ): string; | ||
| 51 | |||
| 52 | /** | ||
| 53 | * Gets the (possibly quoted) identifier column names for safe use in an SQL statement. | ||
| 54 | * | ||
| 55 | * @psalm-return list<string> | ||
| 56 | */ | ||
| 57 | public function getIdentifierColumnNames(ClassMetadata $class, AbstractPlatform $platform): array; | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Gets the column alias. | ||
| 61 | */ | ||
| 62 | public function getColumnAlias( | ||
| 63 | string $columnName, | ||
| 64 | int $counter, | ||
| 65 | AbstractPlatform $platform, | ||
| 66 | ClassMetadata|null $class = null, | ||
| 67 | ): string; | ||
| 68 | } | ||
