You are here

public function Matrix::getCellByPosition in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Util/Flowchart/Matrix.php \Drupal\business_rules\Util\Flowchart\Matrix::getCellByPosition()

Get cell by position.

Parameters

int $x: The X position.

int $y: The Y position.

Return value

array The cell

2 calls to Matrix::getCellByPosition()
Matrix::leftCellIsEmpty in src/Util/Flowchart/Matrix.php
Check if the cell at left from the element is empty.
Matrix::rightCellIsEmpty in src/Util/Flowchart/Matrix.php
Check if the cell at right from the element is empty.

File

src/Util/Flowchart/Matrix.php, line 508

Class

Matrix
The matrix to handle the Business Rule flowchart.

Namespace

Drupal\business_rules\Util\Flowchart

Code

public function getCellByPosition($x, $y) {
  return $this->matrix[$x][$y];
}