exceptions
1 year ago
experiments-reporter.php
3 years ago
manager.php
1 year ago
non-existing-dependency.php
1 year ago
wp-cli.php
1 year ago
wrap-core-dependency.php
1 year ago
non-existing-dependency.php
32 lines
| 1 | <?php |
| 2 | namespace Elementor\Core\Experiments; |
| 3 | |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | exit; // Exit if accessed directly. |
| 6 | } |
| 7 | |
| 8 | class Non_Existing_Dependency { |
| 9 | |
| 10 | private $feature_id; |
| 11 | |
| 12 | public function __construct( $feature_id ) { |
| 13 | $this->feature_id = $feature_id; |
| 14 | } |
| 15 | |
| 16 | public function get_name() { |
| 17 | return $this->feature_id; |
| 18 | } |
| 19 | |
| 20 | public function get_title() { |
| 21 | return $this->feature_id; |
| 22 | } |
| 23 | |
| 24 | public function is_hidden() { |
| 25 | return false; |
| 26 | } |
| 27 | |
| 28 | public static function instance( $feature_id ) { |
| 29 | return new static( $feature_id ); |
| 30 | } |
| 31 | } |
| 32 |