public function Matrix::__construct in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Util/Flowchart/Matrix.php \Drupal\business_rules\Util\Flowchart\Matrix::__construct()
Matrix constructor.
File
- src/
Util/ Flowchart/ Matrix.php, line 39
Class
- Matrix
- The matrix to handle the Business Rule flowchart.
Namespace
Drupal\business_rules\Util\FlowchartCode
public function __construct() {
for ($y = 0; $y <= 100; $y++) {
for ($x = 0; $x <= 100; $x++) {
$this->matrix[$x][$y] = [
'x' => $x * 170 + 10,
'y' => $y * 90 + 10,
'index_x' => $x,
'index_y' => $y,
'element' => NULL,
];
}
}
}