1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
5
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
6
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
7
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
8
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
9
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
10
|
|
|
* THE SOFTWARE. |
11
|
|
|
*/ |
12
|
|
|
|
13
|
|
|
namespace Ytake\LaravelCouchbase\Schema; |
14
|
|
|
|
15
|
|
|
use Illuminate\Database\Connection; |
16
|
|
|
use Illuminate\Database\Schema\Grammars\Grammar; |
17
|
|
|
use Ytake\LaravelCouchbase\Exceptions\NotSupportedException; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Trait NotSupportedTrait |
21
|
|
|
* |
22
|
|
|
* @codeCoverageIgnore |
23
|
|
|
* |
24
|
|
|
* @author Yuuki Takezawa<[email protected]> |
25
|
|
|
*/ |
26
|
|
|
trait NotSupportedTrait |
27
|
|
|
{ |
28
|
|
|
/** |
29
|
|
|
* {@inheritdoc} |
30
|
|
|
*/ |
31
|
|
|
public function toSql(Connection $connection, Grammar $grammar) |
|
|
|
|
32
|
|
|
{ |
33
|
|
|
throw new NotSupportedException(__METHOD__); |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* {@inheritdoc} |
38
|
|
|
*/ |
39
|
|
|
protected function createIndexName($type, array $columns) |
|
|
|
|
40
|
|
|
{ |
41
|
|
|
throw new NotSupportedException(__METHOD__); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* {@inheritdoc} |
46
|
|
|
*/ |
47
|
|
|
public function addColumn($type, $name, array $parameters = []) |
|
|
|
|
48
|
|
|
{ |
49
|
|
|
throw new NotSupportedException(__METHOD__); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* {@inheritdoc} |
54
|
|
|
*/ |
55
|
|
|
public function removeColumn($name) |
|
|
|
|
56
|
|
|
{ |
57
|
|
|
throw new NotSupportedException(__METHOD__); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* {@inheritdoc} |
62
|
|
|
*/ |
63
|
|
|
protected function addCommand($name, array $parameters = []) |
|
|
|
|
64
|
|
|
{ |
65
|
|
|
throw new NotSupportedException(__METHOD__); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* {@inheritdoc} |
70
|
|
|
*/ |
71
|
|
|
protected function createCommand($name, array $parameters = []) |
|
|
|
|
72
|
|
|
{ |
73
|
|
|
throw new NotSupportedException(__METHOD__); |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* {@inheritdoc} |
78
|
|
|
*/ |
79
|
|
|
public function getChangedColumns() |
80
|
|
|
{ |
81
|
|
|
throw new NotSupportedException(__METHOD__); |
82
|
|
|
} |
83
|
|
|
} |
84
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.