/** * Constructor - check for gmp support * * @param mixed $value * @throws GmpNotSupportedException */ public function __construct($value) { if (empty(self::$gmpInstalled) || $this->checkGmpInstalled()) { self::$gmpInstalled = true; } else { throw new GmpNotSupportedException(); } parent::__construct($value); }