EnvironmentModule.php
1 week ago
WpEnvironment.php
1 week ago
WpEnvironmentFactory.php
1 week ago
WpEnvironmentFactoryInterface.php
1 week ago
WpEnvironmentInterface.php
1 week ago
WpEnvironmentInterface.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace Syde\Vendor\Worldline\Inpsyde\WorldlineForWoocommerce\Environment; |
| 5 | |
| 6 | /** |
| 7 | * Represents WordPress environment. |
| 8 | */ |
| 9 | interface WpEnvironmentInterface |
| 10 | { |
| 11 | /** |
| 12 | * Return current version of PHP. |
| 13 | * |
| 14 | * @return string |
| 15 | */ |
| 16 | public function phpVersion() : string; |
| 17 | /** |
| 18 | * Return current version of WordPress. |
| 19 | * |
| 20 | * @return string |
| 21 | */ |
| 22 | public function wpVersion() : string; |
| 23 | /** |
| 24 | * Return current version of WooCommerce, empty string if not installed. |
| 25 | * |
| 26 | * @return string |
| 27 | */ |
| 28 | public function wcVersion() : string; |
| 29 | /** |
| 30 | * Return true if WooCommerce plugin is active, false otherwise. |
| 31 | * |
| 32 | * @return bool |
| 33 | */ |
| 34 | public function isWcActive() : bool; |
| 35 | } |
| 36 |