You are here

public function Matrix::isCellEmpty in Business Rules 2.x

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

Check if one cell is with no element.

Parameters

int $x: The X position.

int $y: The Y position.

Return value

bool TRUE|FALSE.

File

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

Class

Matrix
The matrix to handle the Business Rule flowchart.

Namespace

Drupal\business_rules\Util\Flowchart

Code

public function isCellEmpty($x, $y) {
  if (is_null($this->matrix[$x][$y]['element'])) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}