You are here

public function BusinessRulesItemObject::__construct in Business Rules 8

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

BusinessRulesItemObject constructor.

Parameters

string $id: The Business Rule Item id.

string $type: The Business Rule Item type.

int $weight: The Business Rule Item weight.

File

src/BusinessRulesItemObject.php, line 51

Class

BusinessRulesItemObject
Class BusinessRulesItemObject.

Namespace

Drupal\business_rules

Code

public function __construct($id, $type, $weight) {
  $this
    ->setId($id);
  $this
    ->setType($type);
  $this
    ->setWeight($weight);
}