Completed
Push — master ( 0f46ff...89eb26 )
by yuuki
11s
created

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