Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
post-date
/
wp-content
/
plugins
/
flexible-shipping
/
src
/
WPDesk
/
FS
/
TableRate
/
Rule
/
Condition
:
Condition.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Interface Condition * * @package WPDesk\FS\TableRate\Rule\Condition */ namespace WPDesk\FS\TableRate\Rule\Condition; use FSVendor\WPDesk\Forms\Field; use FSVendor\WPDesk\FS\TableRate\Settings\MethodSettings; use Psr\Log\LoggerInterface; use WPDesk\FS\TableRate\Rule\ShippingContents\ShippingContents; /** * Condition */ interface Condition { /** * @return string */ public function get_condition_id(); /** * @return string */ public function get_name(); /** * @return string */ public function get_description(); /** * @return string */ public function get_group(); /** * @return int */ public function get_priority(); /** * @param ShippingContents $shipping_contents . * @param array $condition_settings . * * @return ShippingContents */ public function process_shipping_contents( ShippingContents $shipping_contents, array $condition_settings ); /** * @param array $condition_settings . * @param ShippingContents $contents . * @param LoggerInterface $logger . * * @return bool */ public function is_condition_matched( array $condition_settings, ShippingContents $contents, LoggerInterface $logger ); /** * @param array $condition_settings . * @param ShippingContents $contents . * @param LoggerInterface $logger . * @param MethodSettings $method_settings . * * @return bool */ public function is_condition_matched_with_method_settings( array $condition_settings, ShippingContents $contents, LoggerInterface $logger, MethodSettings $method_settings ); /** * @return Field[] */ public function get_fields(); /** * @param array $condition_settings . * * @return array */ public function prepare_settings( $condition_settings ); }