# stripe/trunk/src/EventManagement/SubscriberInterface.php

Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe, version trunk. 48 lines.

- Page: https://pluginprobe.com/plugins/stripe/trunk/code/src/EventManagement/SubscriberInterface.php
- Raw: https://pluginprobe.com/plugins/stripe/trunk/raw/src/EventManagement/SubscriberInterface.php
- Modified: 2022-02-10T17:52:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/stripe/trunk/code/src/EventManagement/SubscriberInterface.php#L10-L20`.

```php
<?php
/**
 * Event Management: Subscriber interface
 *
 * @package SimplePay
 * @subpackage Core
 * @copyright Copyright (c) 2022, Sandhills Development, LLC
 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since 4.4.0
 */

namespace SimplePay\Core\EventManagement;

/**
 * SubscriberInterface interface.
 *
 * @since 4.4.0
 */
interface SubscriberInterface {

	/**
	 * Returns an array of events that this subscriber is listening to.
	 *
	 * The array key is the event (hook/filter) name.
	 * The value can be:
	 *
	 *  * The method name
	 *  * An array with the method name and priority
	 *  * An array with the method name, priority and number of accepted arguments
	 *
	 * Example:
	 *
	 *  array( 'hook_name' => 'method_name' )
	 *  array( 'hook_name' => array( 'method_name', $priority ) )
	 *  array( 'hook_name' => array( 'method_name', $priority, $accepted_args ) )
	 *  array( 'hook_name' => array(
	 *    array( 'method_name_1', $priority_1, $accepted_args_1 ) ),
	 *    array( 'method_name_2', $priority_2, $accepted_args_2 ) )
	 *  )
	 *
	 * @since 4.4.0
	 *
	 * @return array<mixed>
	 */
	public function get_subscribed_events();

}

```
