NotSupportedTrait::removeColumn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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)
0 ignored issues
show
Unused Code introduced by
The parameter $connection is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $grammar is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
33
    {
34
        throw new NotSupportedException(__METHOD__);
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    protected function createIndexName($type, array $columns)
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $columns is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
41
    {
42
        throw new NotSupportedException(__METHOD__);
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function addColumn($type, $name, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
49
    {
50
        throw new NotSupportedException(__METHOD__);
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56
    public function removeColumn($name)
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
57
    {
58
        throw new NotSupportedException(__METHOD__);
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    protected function addCommand($name, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65
    {
66
        throw new NotSupportedException(__METHOD__);
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    protected function createCommand($name, array $parameters = [])
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $parameters is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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