| 1 | <?php |
||
| 10 | trait Trait_RuleWithCache |
||
| 11 | { |
||
| 12 | /** @var array $cache */ |
||
| 13 | protected $cache = [ |
||
| 14 | 'array' => null, // filled by toArray() |
||
| 15 | 'string' => null, // filled by toString() |
||
| 16 | 'semantic_id' => null, // filled by getSemanticId() |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** @var array $static_cache */ |
||
| 20 | protected static $static_cache = [ |
||
| 21 | 'rules_generation' => [], |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | */ |
||
| 26 | 305 | public function flushCache() |
|
| 36 | |||
| 37 | /** |
||
| 38 | */ |
||
| 39 | 1 | public static function flushStaticCache() |
|
| 45 | |||
| 46 | /**/ |
||
| 47 | } |
||
| 48 |