GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
Range Class Reference

Public Member Functions

 __construct (int $min, int $max)
 
 isInRange (int $v)
 

Data Fields

 $minValue
 
 $maxValue
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( int  $min,
int  $max 
)

Range constructor.

Parameters
int$min
int$max
34  {
35  $this->minValue = $min;
36  $this->maxValue = $max;
37  }

Member Function Documentation

◆ isInRange()

isInRange ( int  $v)
Parameters
int$v
Returns
bool
44  : bool{
45  return $v >= $this->minValue && $v <= $this->maxValue;
46  }

Field Documentation

◆ $maxValue

$maxValue

◆ $minValue

$minValue

The documentation for this class was generated from the following file: