File "BaseEvent.php"
Full Path: /home/warrior1/public_html/plugins/google-listings-and-ads/src/Tracking/Events/BaseEvent.php
File size: 879 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Tracking\Events;
use Automattic\WooCommerce\GoogleListingsAndAds\PluginHelper;
use Automattic\WooCommerce\GoogleListingsAndAds\Tracking\TracksAwareInterface;
use Automattic\WooCommerce\GoogleListingsAndAds\Tracking\TracksAwareTrait;
/**
* Class BaseEvent
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Tracking\Events
*/
abstract class BaseEvent implements TracksEventInterface, TracksAwareInterface {
use TracksAwareTrait, PluginHelper;
/**
* Record an event using the Tracks instance.
*
* @param string $event_name The event name to record.
* @param array $properties (Optional) Properties to record with the event.
*/
protected function record_event( string $event_name, $properties = [] ) {
$this->tracks->record_event( $event_name, $properties );
}
}