Completed
Push — master ( 3785c8...e3dbba )
by Konstantinos
03:58
created

ModelInequalityOperator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compile() 0 6 1
1
<?php
2
3
namespace BZIon\Twig;
4
5
/**
6
 * A twig operator to test if two models are not the same (they are not of the
7
 * same type or have a different ID)
8
 */
9
class ModelInequalityOperator extends ModelEqualityOperator
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function compile(\Twig_Compiler $compiler)
15
    {
16
        $compiler->raw('(!');
17
        parent::compile($compiler);
18
        $compiler->raw(')');
19
    }
20
}
21
22