1 | <?php |
||
10 | trait Constraints |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 3 | public function index($columns) |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 3 | public function primary($fields) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 3 | public function unique($columns) |
|
44 | |||
45 | /** |
||
46 | * @param string $class |
||
47 | * @param array $columns |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 9 | protected function constraint($class, array $columns) |
|
59 | |||
60 | /** |
||
61 | * @return \Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder |
||
62 | */ |
||
63 | abstract public function getBuilder(); |
||
64 | |||
65 | /** |
||
66 | * @param Buildable $buildable |
||
67 | */ |
||
68 | abstract protected function queue(Buildable $buildable); |
||
69 | } |
||
70 |