* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseStream extends BaseFrameworkSystem {
+ /**
+ * Random number generator instance (RNG)
+ */
+ private $rngInstance = null;
+
/**
* Protected constructor
*
$this->removeNumberFormaters();
$this->removeSystemArray();
}
+
+ /**
+ * Setter for RNG instance
+ *
+ * @param $rngInstance An RNG instance
+ * @return void
+ */
+ protected final function setRngInstance (RandomNumberGenerator $rngInstance) {
+ $this->rngInstance = $rngInstance;
+ }
+
+ /**
+ * Getter for RNG instance
+ *
+ * @return $rngInstance An RNG instance
+ */
+ protected final function getRngInstance () {
+ return $this->rngInstance;
+ }
}
// [EOF]