HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/simple-history/dropins/class-dropin.php
<?php

namespace Simple_History\Dropins;

use Simple_History\Helpers;
use Simple_History\Simple_History;

/**
 * Base class for dropins.
 */
abstract class Dropin {
	/** @var Simple_History */
	protected Simple_History $simple_history;

	/**
	 * @param Simple_History $simple_history Simple_History instance.
	 */
	public function __construct( $simple_history ) {
		$this->simple_history = $simple_history;
	}

	/**
	 * Fired when Simple History has loaded the dropin.
	 *
	 * @return void
	 */
	public function loaded() {
		// ...
	}

	/**
	 * Get the slug for the dropin,
	 * i.e. the unqualified class name.
	 *
	 * @return string
	 */
	public function get_slug() {
		return Helpers::get_class_short_name( $this );
	}
}