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

NotSupportedTrait   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 58
rs 10
c 0
b 0
f 0
wmc 7
lcom 0
cbo 1

7 Methods

Rating   Name   Duplication   Size   Complexity  
A toSql() 0 4 1
A createIndexName() 0 4 1
A addColumn() 0 4 1
A removeColumn() 0 4 1
A addCommand() 0 4 1
A createCommand() 0 4 1
A getChangedColumns() 0 4 1
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