public function __construct($prime = null) { if (is_null($prime)) { $prime = static::generatePrime(); } $this->setPrime($prime); }