balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

log-item-interface.php (1223B)


      1 <?php
      2 namespace Elementor\Core\Logger\Items;
      3 
      4 if ( ! defined( 'ABSPATH' ) ) {
      5 	exit; // Exit if accessed directly
      6 }
      7 
      8 /**
      9  * Interface Log_Item_Interface
     10  *
     11  * @package Elementor\Core\Logger
     12  *
     13  * @property string $date
     14  * @property string $type
     15  * @property string $message
     16  * @property int $times
     17  * @property array $meta
     18  * @property array $times_dates
     19  * @property array $args
     20  *
     21  */
     22 
     23 interface Log_Item_Interface extends \JsonSerializable {
     24 
     25 	const MAX_LOG_ENTRIES = 42;
     26 
     27 	/**
     28 	 * Log_Item_Interface constructor.
     29 	 *
     30 	 * @param array $args
     31 	 */
     32 	public function __construct( $args );
     33 
     34 	/**
     35 	 * @param string $name
     36 	 *
     37 	 * @return string
     38 	 */
     39 	public function __get( $name );
     40 
     41 	/**
     42 	 * @return string
     43 	 */
     44 	public function __toString();
     45 
     46 	/**
     47 	 * @param $str
     48 	 * @return Log_Item_Interface | null
     49 	 */
     50 	public static function from_json( $str );
     51 
     52 	/**
     53 	 * @param string $format
     54 	 * @return string
     55 	 */
     56 	public function format( $format = 'html' );
     57 
     58 	/**
     59 	 * @return string
     60 	 */
     61 	public function get_fingerprint();
     62 
     63 	/**
     64 	 * @param Log_Item_Interface $item
     65 	 * @param bool               $truncate
     66 	 */
     67 	public function increase_times( $item, $truncate = true );
     68 
     69 	/**
     70 	 * @return string
     71 	 */
     72 	public function get_name();
     73 }