Fields   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSelectPart() 0 3 1
1
<?php
2
3
namespace Xsolve\SalesforceClient\QueryBuilder\Expr\Select;
4
5
use Xsolve\SalesforceClient\QueryBuilder\Expr\ExprInterface;
6
7
class Fields extends AbstractSelect implements ExprInterface
8
{
9
    /**
10
     * @var string[]
11
     */
12
    private $fields = [];
13
14
    /**
15
     * @param string[] $fields
16
     */
17 4
    public function __construct(array $fields)
18
    {
19 4
        $this->fields = $fields;
20 4
    }
21
22 4
    protected function getSelectPart(): string
23
    {
24 4
        return implode(', ', $this->fields);
25
    }
26
}
27