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