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
|
|
|
* @codeCoverageIgnore |
22
|
|
|
* |
23
|
|
|
* @author Yuuki Takezawa<[email protected]> |
24
|
|
|
*/ |
25
|
|
|
trait NotSupportedTrait |
26
|
|
|
{ |
27
|
|
|
/** |
28
|
|
|
* {@inheritdoc} |
29
|
|
|
*/ |
30
|
|
|
public function toSql(Connection $connection, Grammar $grammar) |
|
|
|
|
31
|
|
|
{ |
32
|
|
|
throw new NotSupportedException(__METHOD__); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* {@inheritdoc} |
37
|
|
|
*/ |
38
|
|
|
protected function createIndexName($type, array $columns) |
|
|
|
|
39
|
|
|
{ |
40
|
|
|
throw new NotSupportedException(__METHOD__); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* {@inheritdoc} |
45
|
|
|
*/ |
46
|
|
|
public function addColumn($type, $name, array $parameters = []) |
|
|
|
|
47
|
|
|
{ |
48
|
|
|
throw new NotSupportedException(__METHOD__); |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* {@inheritdoc} |
53
|
|
|
*/ |
54
|
|
|
public function removeColumn($name) |
|
|
|
|
55
|
|
|
{ |
56
|
|
|
throw new NotSupportedException(__METHOD__); |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* {@inheritdoc} |
61
|
|
|
*/ |
62
|
|
|
protected function addCommand($name, array $parameters = []) |
|
|
|
|
63
|
|
|
{ |
64
|
|
|
throw new NotSupportedException(__METHOD__); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* {@inheritdoc} |
69
|
|
|
*/ |
70
|
|
|
protected function createCommand($name, array $parameters = []) |
|
|
|
|
71
|
|
|
{ |
72
|
|
|
throw new NotSupportedException(__METHOD__); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* {@inheritdoc} |
77
|
|
|
*/ |
78
|
|
|
public function getChangedColumns() |
79
|
|
|
{ |
80
|
|
|
throw new NotSupportedException(__METHOD__); |
81
|
|
|
} |
82
|
|
|
} |
83
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.