X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstreams%2Fclass_BaseStream.php;fp=inc%2Fclasses%2Fmain%2Fstreams%2Fclass_BaseStream.php;h=728e6c3e4c4c72a6fbe789ccc4f10fdad458281d;hp=e226545a11863b7596788345d1b1c0ea5d064e2e;hb=5e067e1139ac4c4ec92642b8700b449d756e01ec;hpb=1fefb1935bf65d6a5efd241538e2e7679d480afe diff --git a/inc/classes/main/streams/class_BaseStream.php b/inc/classes/main/streams/class_BaseStream.php index e226545a..728e6c3e 100644 --- a/inc/classes/main/streams/class_BaseStream.php +++ b/inc/classes/main/streams/class_BaseStream.php @@ -22,6 +22,11 @@ * along with this program. If not, see . */ class BaseStream extends BaseFrameworkSystem { + /** + * Random number generator instance (RNG) + */ + private $rngInstance = null; + /** * Protected constructor * @@ -36,6 +41,25 @@ class BaseStream extends BaseFrameworkSystem { $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]