PHP 8.2.31
Preview: AIEndpoint.php Size: 853 B
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/woocommerce/src/Admin/API/AI/AIEndpoint.php

<?php

declare( strict_types = 1 );

namespace Automattic\WooCommerce\Admin\API\AI;

/**
 * AI Endpoint base controller
 *
 * @internal
 */
abstract class AIEndpoint {
	/**
	 * Endpoint namespace.
	 *
	 * @var string
	 */
	protected $namespace = 'wc-admin';

	/**
	 * Route base.
	 *
	 * @var string
	 */
	protected $rest_base = 'ai';


	/**
	 * Endpoint.
	 *
	 * @var string
	 */
	protected $endpoint;

	/**
	 * Register routes.
	 *
	 * @param array $args Optional. Either an array of options for the endpoint,
	 * or an array of arrays for multiple methods. Default empty array.
	 */
	public function register( $args ) {
		register_rest_route(
			$this->namespace,
			'/' . $this->rest_base . '/' . $this->endpoint,
			$args
		);
	}

	/**
	 * Return schema properties.
	 *
	 * @return array
	 */
	public function get_schema() {
		return array();
	}
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
853 B lrw-r--r-- 2026-03-03 06:25:15
Edit Download
1.74 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
2.25 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
1.35 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
2.48 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
2.11 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
1.54 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download
3.75 KB lrw-r--r-- 2026-03-03 06:25:15
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).