public function BusinessRulesItemObject::__construct in Business Rules 8
Same name and namespace in other branches
- 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_rulesCode
public function __construct($id, $type, $weight) {
$this
->setId($id);
$this
->setType($type);
$this
->setWeight($weight);
}