File "Scans_Repository.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/modules/site-scanner/Repository/Scans_Repository.php
File size: 621 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace iThemesSecurity\Site_Scanner\Repository;

use iThemesSecurity\Site_Scanner\Scan;

interface Scans_Repository {

	/**
	 * Get the scans matching the given options.
	 *
	 * @param Scans_Options $options
	 *
	 * @return Scan[]
	 */
	public function get_scans( Scans_Options $options );

	/**
	 * Count the number of scans that match the given options.
	 *
	 * @param Scans_Options $options
	 *
	 * @return int
	 */
	public function count_scans( Scans_Options $options );

	/**
	 * Get a scan by id.
	 *
	 * @param int $id The scan id.
	 *
	 * @return Scan|\WP_Error
	 */
	public function get_scan( $id );
}