HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wp-content/plugins/pixel-caffeine/includes/admin/logs/interface-log-repository.php
<?php
/**
 * Contract for the errors log repository
 *
 * @package Pixel Caffeine
 */

namespace PixelCaffeine\Logs;

use PixelCaffeine\Logs\Entity\Log;

interface LogRepositoryInterface {

	/**
	 * Save the object into the DB, updating it if the $log has an ID set
	 *
	 * @param Log $log The log entity instance.
	 *
	 * @return void
	 */
	public function save( Log &$log );

	/**
	 * Remove an Log from the DB
	 *
	 * @param int $log_id The log ID.
	 *
	 * @return void
	 */
	public function remove( $log_id );

	/**
	 * Find a Log by the ID
	 *
	 * @param int $id The log ID.
	 *
	 * @return Log
	 */
	public function find_by_id( $id );

	/**
	 * Find all Logs for the page specified
	 *
	 * @param array $order_by The fields for which order by.
	 * @param null  $limit The limit.
	 * @param null  $offset The offset.
	 *
	 * @return Log[]
	 */
	public function find_all( array $order_by = null, $limit = null, $offset = null );

	/**
	 * Find all Logs filtered by Exception for the page specified
	 *
	 * @param string $exception The exception to find.
	 * @param array  $order_by The fields for which order by.
	 * @param null   $limit The limit.
	 * @param null   $offset The offset.
	 *
	 * @return Log[]
	 */
	public function find_by_exception( $exception, array $order_by = null, $limit = null, $offset = null );

	/**
	 * Return the count of all logs saved
	 *
	 * @return int
	 */
	public function get_count_all();

}