File "Stringable_Json.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/lib/Stringable_Json.php
File size: 340 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace iThemesSecurity\Lib;

class Stringable_Json implements \JsonSerializable {

	private $value;

	public function __construct( $value ) {
		$this->value = $value;
	}

	#[\ReturnTypeWillChange]
	public function jsonSerialize() {
		return $this->value;
	}

	public function __toString() {
		return wp_json_encode( $this );
	}
}