| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Logger\Items; |
| 3 | 3 | |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | - exit; // Exit if accessed directly. | |
| 5 | + exit; // Exit if accessed directly | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Interface Log_Item_Interface |
| @@ -16,8 +16,9 @@ | ||
| 16 | 16 | * @property int $times |
| 17 | 17 | * @property array $meta |
| 18 | 18 | * @property array $times_dates |
| 19 | 19 | * @property array $args |
| 20 | + * | |
| 20 | 21 | */ |
| 21 | 22 | |
| 22 | 23 | interface Log_Item_Interface extends \JsonSerializable { |
| 23 | 24 | |
| @@ -41,8 +42,12 @@ | ||
| 41 | 42 | * @return string |
| 42 | 43 | */ |
| 43 | 44 | public function __toString(); |
| 44 | 45 | |
| 46 | + /** | |
| 47 | + * @param $str | |
| 48 | + * @return Log_Item_Interface | null | |
| 49 | + */ | |
| 45 | 50 | public static function from_json( $str ); |
| 46 | 51 | |
| 47 | 52 | /** |
| 48 | 53 | * @param string $format |