1 | <?php |
||
18 | class ExpressionCondition implements ConditionInterface |
||
19 | { |
||
20 | /** @var string */ |
||
21 | protected $expression; |
||
22 | |||
23 | /** @var ExpressionLanguage */ |
||
24 | protected $language; |
||
25 | |||
26 | /** |
||
27 | * @param string $expression The expression to ve evaluated |
||
28 | * @param ExpressionLanguage $language The instance of the Expression Language |
||
29 | */ |
||
30 | 5 | function __construct($expression, ExpressionLanguage $language) |
|
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 5 | public function holdsFor(Context $context) |
|
43 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.