| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Asserter extends \Hoa\Ruler\Visitor\Asserter |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @param Context $context context |
||
| 24 | */ |
||
| 25 | 6 | public function __construct(Context $context = null) |
|
| 26 | { |
||
| 27 | 6 | if (null !== $context) { |
|
| 28 | $this->setContext($context); |
||
| 29 | } |
||
| 30 | |||
| 31 | 6 | $this->setOperator('and', [$this, 'makeAnd']); |
|
| 32 | 6 | } |
|
| 33 | |||
| 34 | 1 | public function makeAnd($lhs, $rhs) |
|
| 35 | { |
||
| 36 | 1 | return new LastCombination($lhs, $rhs); |
|
| 37 | } |
||
| 38 | |||
| 39 | 5 | public function visitModel(Model $element, &$handle = null, $eldnah = null) |
|
| 42 | } |
||
| 43 | } |
||
| 44 |