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

InsertSelectBuilder::getSelectInsert()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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
}