Completed
Pull Request — master (#29)
by yuuki
05:25
created

NotSupportedTrait::getChangedColumns()   A

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 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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)
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...
31
    {
32
        throw new NotSupportedException(__METHOD__);
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    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...
39
    {
40
        throw new NotSupportedException(__METHOD__);
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    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...
47
    {
48
        throw new NotSupportedException(__METHOD__);
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    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...
55
    {
56
        throw new NotSupportedException(__METHOD__);
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    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...
63
    {
64
        throw new NotSupportedException(__METHOD__);
65
    }
66
67
    /**
68
     * {@inheritdoc}
69
     */
70
    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...
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