first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace Elementor\Data\V2\Base\Processor;
|
||||
|
||||
use Elementor\Data\V2\Base\Processor;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
abstract class After extends Processor {
|
||||
|
||||
/**
|
||||
* Get conditions for running processor.
|
||||
*
|
||||
* @param array $args
|
||||
* @param mixed $result
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function get_conditions( $args, $result ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply processor.
|
||||
*
|
||||
* @param $args
|
||||
* @param $result
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
abstract public function apply( $args, $result );
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace Elementor\Data\V2\Base\Processor;
|
||||
|
||||
use Elementor\Data\V2\Base\Processor;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
abstract class Before extends Processor {
|
||||
|
||||
/**
|
||||
* Get conditions for running processor.
|
||||
* @param array $args
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function get_conditions( $args ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply processor.
|
||||
*
|
||||
* @param array $args
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
abstract public function apply( $args );
|
||||
}
|
||||
Reference in New Issue
Block a user