You are here

public function VariablesSet::count in Business Rules 8

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

Number of variables inside the set.

Return value

int The number of variables on the variable set.

4 calls to VariablesSet::count()
VariablesSet::getVariable in src/VariablesSet.php
Return variable by id.
VariablesSet::getVariablesIds in src/VariablesSet.php
Return the variables ids.
VariablesSet::remove in src/VariablesSet.php
Remove one variable from the variables set.
VariablesSet::replaceValue in src/VariablesSet.php
Replace the content of one variable.

File

src/VariablesSet.php, line 56

Class

VariablesSet
Class VariablesSet to be returned on each BusinessRulesVariable plugin.

Namespace

Drupal\business_rules

Code

public function count() {
  return count($this->variables);
}