public function get(int $i, int $j) { if ($i >= $this->m) { throw new Exception\MatrixException("Row {$i} does not exist"); } if ($j >= $this->n) { throw new Exception\MatrixException("Column {$j} does not exist"); } return $this->A[$i][$j]; }