function RulesComponent::__construct

Constructs the object.

Parameters

\Drupal\rules\Engine\ExpressionInterface $expression: The expression of the component.

File

src/Engine/RulesComponent.php, line 90

Class

RulesComponent
Handles executable Rules components.

Namespace

Drupal\rules\Engine

Code

protected function __construct(ExpressionInterface $expression) {
    $this->state = ExecutionState::create();
    $this->expression = $expression;
}