Inner::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Xsolve\SalesforceClient\QueryBuilder\Expr\Select;
4
5
use Xsolve\SalesforceClient\QueryBuilder\Expr\ExprInterface;
6
use Xsolve\SalesforceClient\QueryBuilder\Query;
7
8
class Inner extends AbstractSelect implements ExprInterface
9
{
10
    /**
11
     * @var Query
12
     */
13
    private $innerQuery;
14
15 2
    public function __construct(Query $query)
16
    {
17 2
        $this->innerQuery = $query;
18 2
    }
19
20 2
    protected function getSelectPart(): string
21
    {
22 2
        return sprintf('(%s)', $this->innerQuery->parse());
23
    }
24
}
25