1 | <?php |
||
31 | class DropIndex extends Action |
||
32 | { |
||
33 | |||
34 | /** |
||
35 | * The index to drop |
||
36 | * |
||
37 | * @var Index |
||
38 | */ |
||
39 | protected $index; |
||
40 | |||
41 | /** |
||
42 | * Constructor |
||
43 | * |
||
44 | * @param Table $table The table owning the index |
||
45 | * @param Index $index The index to be dropped |
||
46 | */ |
||
47 | public function __construct(Table $table, Index $index) |
||
52 | |||
53 | /** |
||
54 | * Creates a new DropIndex object after assembling the passed |
||
55 | * arguments. |
||
56 | * |
||
57 | * @param Table $table The table where the index is |
||
58 | * @param array $columns the indexed columns |
||
59 | * @return DropIndex |
||
60 | */ |
||
61 | public static function build(Table $table, array $columns = []) |
||
68 | |||
69 | /** |
||
70 | * Creates a new DropIndex when the name of the index to drop |
||
71 | * is knonwn. |
||
72 | * |
||
73 | * @param Table $table The table where the index is |
||
74 | * @param mixed $name The name of the index |
||
75 | * @return DropIndex |
||
76 | */ |
||
77 | public static function buildFromName(Table $table, $name) |
||
84 | |||
85 | /** |
||
86 | * Returns the index to be dropped |
||
87 | * |
||
88 | * @return Index |
||
89 | */ |
||
90 | public function getIndex() |
||
94 | } |
||
95 |