HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
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: /var/www/lipovac/wp-content/plugins/the-events-calendar/src/Tribe/Event_Tickets/Main.php
<?php
/**
 * The Events Calendar integration with Event Tickets class
 *
 * @package The Events Calendar
 * @subpackage Event Tickets
 * @since 4.0.1
 */
class Tribe__Events__Event_Tickets__Main {
	/**
	 * Private variable holding the class instance
	 *
	 * @since 4.0.1
	 *
	 * @var Tribe__Events__Event_Tickets__Main
	 */
	private static $instance;

	/**
	 * Contains an instance of the Attendees Report integration class
	 *
	 * @since 4.0.1
	 *
	 * @var Tribe__Events__Event_Tickets__Attendees_Report
	 */
	private $attendees_report;

	/**
	 * Contains an instance of the Ticket Email integration class
	 *
	 * @since 4.0.2
	 *
	 * @var Tribe__Events__Event_Tickets__Ticket_Email
	 */
	private $ticket_email;

	/**
	 * Method to return the private instance of the class
	 *
	 * @since 4.0.1
	 *
	 * @return Tribe__Events__Event_Tickets__Main
	 */
	public static function instance() {
		if ( ! self::$instance ) {
			self::$instance = new self;
		}

		return self::$instance;
	}

	/**
	 * Constructor
	 */
	public function __construct() {
		$this->attendees_report();
		$this->ticket_email();
	}

	/**
	 * Attendees Report integration class object accessor method
	 *
	 * @since 4.0.1
	 *
	 * @param object $object Override Attendees Report object
	 * @return Tribe__Events__Event_Tickets__Attendees_Report
	 */
	public function attendees_report( $object = null ) {
		if ( $object ) {
			$this->attendees_report = $object;
		} elseif ( ! $this->attendees_report ) {
			$this->attendees_report = new Tribe__Events__Event_Tickets__Attendees_Report;
		}

		return $this->attendees_report;
	}

	/**
	 * Ticket email integration class object accessor method
	 *
	 * @since 4.0.2
	 *
	 * @param object $object Override Ticket Email object
	 * @return Tribe__Events__Event_Tickets__Ticket_Email
	 */
	public function ticket_email( $object = null ) {
		if ( $object ) {
			$this->ticket_email = $object;
		} elseif ( ! $this->ticket_email ) {
			$this->ticket_email = new Tribe__Events__Event_Tickets__Ticket_Email;
		}

		return $this->ticket_email;
	}
}