token = $token ?: bin2hex(openssl_random_pseudo_bytes(floor(self::MAX_LENGTH / 2))); } /** * Return the status from the value object * * @return string */ public function getValue() { return $this->token; } }