Completed
Pull Request — master (#82)
by
unknown
02:06
created

CompileTimeOperator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A format() 0 4 1
1
<?php
2
3
namespace RulerZ\Target\Operators;
4
5
class CompileTimeOperator
6
{
7
    /**
8
     * @var string
9
     */
10
    private $compiledOperator;
11
12
    public function __construct($compiled)
13
    {
14
        $this->compiledOperator = $compiled;
15
    }
16
17
    public function format($shouldBreakString)
0 ignored issues
show
Unused Code introduced by
The parameter $shouldBreakString is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
        return $this->compiledOperator;
20
    }
21
}