src/GameOfLife/Inputs/BoardEditor/BoardEditor.php
/**
     * Checks whether a coordinate is in the defined range.
     *
     * @param int $_coordinate The name of the coordinate axis ("X" or "Y")
     * @param String $_coordinateAxisName The name of the
     * @param int $_minValue The min value
     * @param int $_maxValue The max value
     *
     * @throws \Exception The exception when the coordinate exceeds the range
     */
Checks whether a coordinate is in the defined range.
@param int $_coordinate The name of the coordinate axis ("X" or "Y")
@param String $_coordinateAxisName The name of the
@param int $_minValue The min value
@param int $_maxValue The max value

@throws \Exception The exception when the coordinate exceeds the range
Checks whether a coordinate is in the defined range . @param int $_coordinate The name of the coordinate axis ( " X " or " Y " ) @param String $_coordinateAxisName The name of the @param int $_minValue The min value @param int $_maxValue The max value @throws \ Exception The exception when the coordinate exceeds the range
public function checkCoordinate(int $_coordinate, String $_coordinateAxisName, int $_minValue, int $_maxValue)
    {
        if ($_coordinate < $_minValue)
        {
            throw new \Exception("The " . $_coordinateAxisName . "-Position may not be smaller than " . $_minValue . ".");
        }
        elseif ($_coordinate > $_maxValue)
        {
            throw new \Exception("The " . $_coordinateAxisName . "-Position may not be larger than " . $_maxValue . ".");
        }
    }
public function checkCoordinate ( int $ _coordinate , String $ _coordinateAxisName , int $ _minValue , int $ _maxValue ) { if ( $ _coordinate < $ _minValue ) { throw new \ Exception ( " The  " . $ _coordinateAxisName . " -Position may not be smaller than  " . $ _minValue . " . " ) ; } elseif ( $ _coordinate > $ _maxValue ) { throw new \ Exception ( " The  " . $ _coordinateAxisName . " -Position may not be larger than  " . $ _maxValue . " . " ) ; } }
Checks whether a coordinate is in the defined range.
Checks whether a coordinate is in the defined range .