1 | <?php namespace Limoncello\Tests\Auth\Authorization\PolicyEnforcement\Data; |
||
31 | class TestRuleAlgorithm extends BaseRuleAlgorithm |
||
32 | { |
||
33 | use DefaultTargetSerializeTrait; |
||
34 | |||
35 | /** @inheritdoc */ |
||
36 | const METHOD = [self::class, 'evaluate']; |
||
37 | |||
38 | public static $result = EvaluationEnum::NOT_APPLICABLE; |
||
39 | |||
40 | /** |
||
41 | * @param ContextInterface $context |
||
42 | * @param array $optimizedTargets |
||
43 | * @param array $encodedRules |
||
44 | * @param LoggerInterface|null $logger |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public static function evaluate( |
||
49 | ContextInterface $context, |
||
50 | array $optimizedTargets, |
||
51 | array $encodedRules, |
||
52 | LoggerInterface $logger = null |
||
53 | ) { |
||
54 | $context && $optimizedTargets && $encodedRules && $logger ?: null; |
||
55 | |||
56 | return static::packEvaluationResult(static::$result); |
||
57 | } |
||
58 | } |
||
59 |