PluginProbe
WowAddons – Product Addons and Product Options With Custom Fields / trunk
WowAddons – Product Addons and Product Options With Custom Fields vtrunk
1.7.2 1.7.1 1.7.0 1.6.21 1.6.20 1.6.19 1.6.18 1.6.17 1.6.16 1.6.15 1.6.14 1.6.13 1.6.12 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 All 57 releases
product-addons / includes / common / formula / ast / interface-expression-node.php

interface-expression-node.php in WowAddons – Product Addons and Product Options With Custom Fields trunk, at includes/common/formula/ast/interface-expression-node.php

29 lines 641 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore
2 /**
3 * AST node interface.
4 *
5 * @package PRAD
6 * @since 1.5.8
7 */
8
9 namespace PRAD\Includes\Common\Formula\Ast;
10
11 use PRAD\Includes\Common\Formula\Abstract_Expression_Engine;
12
13 defined( 'ABSPATH' ) || exit;
14
15 /**
16 * Common interface for all AST nodes.
17 */
18 interface Expression_Node {
19 /**
20 * Evaluates the expression node with the given engine and context.
21 *
22 * @param Abstract_Expression_Engine $engine Engine instance.
23 * @param array $context Context passed to evaluate().
24 *
25 * @return mixed
26 */
27 public function evaluate( Abstract_Expression_Engine $engine, array $context = array() );
28 }
29