Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Doctrine\DBAL\Schema;
4
 
5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
 
7
/**
8
 * Marker interface for constraints.
9
 *
10
 * @deprecated Use {@see ForeignKeyConstraint}, {@see Index} or {@see UniqueConstraint} instead.
11
 */
12
interface Constraint
13
{
14
    /** @return string */
15
    public function getName();
16
 
17
    /** @return string */
18
    public function getQuotedName(AbstractPlatform $platform);
19
 
20
    /**
21
     * Returns the names of the referencing table columns
22
     * the constraint is associated with.
23
     *
24
     * @return string[]
25
     */
26
    public function getColumns();
27
 
28
    /**
29
     * Returns the quoted representation of the column names
30
     * the constraint is associated with.
31
     *
32
     * But only if they were defined with one or a column name
33
     * is a keyword reserved by the platform.
34
     * Otherwise the plain unquoted value as inserted is returned.
35
     *
36
     * @param AbstractPlatform $platform The platform to use for quotation.
37
     *
38
     * @return string[]
39
     */
40
    public function getQuotedColumns(AbstractPlatform $platform);
41
}