Inner   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 15
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSelectPart() 0 3 1
A __construct() 0 3 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