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/the-events-calendar/src/deprecated/Event.php
<?php
_deprecated_class( 'Tribe__Events__Revisions__Event', '6.3.0' );

/**
 * Class Tribe__Events__Revisions__Event
 *
 * Handles the saving operations of an event revision.
 *
 * @since 4.2.5
 * @since 6.3.0
 *
 * @deprecated
 */
class Tribe__Events__Revisions__Event extends Tribe__Events__Revisions__Post {

	/**
	 * @var Tribe__Events__Meta__Save
	 */
	protected $meta_save;

	/**
	 * Tribe__Events__Revisions__Event constructor.
	 *
	 * @param Tribe__Events__Meta__Save|null $meta_save
	 */
	public function __construct( WP_Post $post, Tribe__Events__Meta__Save $meta_save = null ) {
		parent::__construct( $post );
		$this->meta_save = $meta_save ? $meta_save : new Tribe__Events__Meta__Save( $this->post->ID, $this->post );
	}

	/**
	 * Saves the revision.
	 */
	public function save() {
		return $this->meta_save->save();
	}

}