1 | <?php |
||
20 | class RedirectDetails { |
||
21 | /** |
||
22 | * POST or GET (depends on brand used). The default value is POST. |
||
23 | * |
||
24 | * @var string|null |
||
25 | */ |
||
26 | public $method; |
||
27 | |||
28 | /** |
||
29 | * URL including the query string to which your customer is redirected (depends on brand used). |
||
30 | * |
||
31 | * @var string|null |
||
32 | */ |
||
33 | public $url; |
||
34 | |||
35 | /** |
||
36 | * From JSON. |
||
37 | * |
||
38 | * @link https://github.com/WordPress/wp-notify/blob/develop/includes/JsonUnserializable.php |
||
39 | * @param object $object Object. |
||
40 | * @return self |
||
41 | * @throws \JsonSchema\Exception\ValidationException Throws exception when JSON is not valid. |
||
42 | */ |
||
43 | 2 | public static function from_json( $object ) { |
|
66 | } |
||
67 |