Completed
Push — master ( ece51a...7e2c41 )
by Beniamin
02:51
created

InsertSelectBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 27
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A selectInsert() 0 6 1
A getSelectInsert() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Phuria SQL Builder package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\SQLBuilder\QueryBuilder;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class InsertSelectBuilder extends AbstractInsertBuilder
18
{
19
    /**
20
     * @var BuilderInterface
21
     */
22
    private $selectInsert;
23
24
    /**
25
     * @param BuilderInterface $sourceQb
26
     *
27
     * @return $this
28
     */
29 1
    public function selectInsert(BuilderInterface $sourceQb)
30
    {
31 1
        $this->selectInsert = $sourceQb;
32
33 1
        return $this;
34
    }
35
36
    /**
37
     * @return BuilderInterface
38
     */
39 1
    public function getSelectInsert()
40
    {
41 1
        return $this->selectInsert;
42
    }
43
}