WooCommerce Code Reference

AbstractTemplate.php

Source code

<?php
namespace Automattic\WooCommerce\Blocks\Templates;

/**
 * AbstractTemplate class.
 *
 * Shared logic for templates.
 *
 * @internal
 */
abstract class AbstractTemplate {

	/**
	 * The slug of the template.
	 *
	 * @var string
	 */
	const SLUG = '';

	/**
	 * Initialization method.
	 */
	abstract public function init();

	/**
	 * Should return the title of the template.
	 *
	 * @return string
	 */
	abstract public function get_template_title();

	/**
	 * Should return the description of the template.
	 *
	 * @return string
	 */
	abstract public function get_template_description();
}