base-compatibility.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Compatibility; |
| 5 | |
| 6 | |
| 7 | abstract class Base_Compatibility { |
| 8 | public static $is_activated = null; |
| 9 | |
| 10 | public static function is_activated() { |
| 11 | if ( is_null( static::$is_activated ) ) { |
| 12 | static::$is_activated = static::check(); |
| 13 | } |
| 14 | |
| 15 | return static::$is_activated; |
| 16 | } |
| 17 | |
| 18 | abstract public static function check(); |
| 19 | |
| 20 | } |
| 21 | |
| 22 |