| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 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 ) { |
|
| 67 |