You are here

public function VariableObject::__construct in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/VariableObject.php \Drupal\business_rules\VariableObject::__construct()

VariableObject constructor.

Parameters

string $id: The variable id.

mixed $value: The variable value.

string $type: The variable type.

File

src/VariableObject.php, line 43

Class

VariableObject
Class Variable to be used on BusinessRulesVariable plugins.

Namespace

Drupal\business_rules

Code

public function __construct($id = NULL, $value = NULL, $type = NULL) {
  $this
    ->setId($id);
  $this
    ->setValue($value);
  $this
    ->setType($type);
}