CoreFiles by mySites.guru
FactoryInterface.php43 lines, 1,124 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
827590d3c120975590e21eae53086c79
sha1
373c994574028a704b54dfaec715b72af1aff49a
sha256
23a63d70b8ec59bcdbb7cdd130603384d642a1ed351914e4679ebaa9e3c471fd
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Document;

defined('_JEXEC') or die;

/**
 * Interface defining a factory which can create JDocument objects
 *
 * @since  __DEPLOY_VERSION__
 */
interface FactoryInterface
{
	/**
	 * Creates a new JDocument object for the requested format.
	 *
	 * @param   string  $type        The document type to instantiate
	 * @param   array   $attributes  Array of attributes
	 *
	 * @return  Document
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function createDocument(string $type = 'html', array $attributes = []): Document;

	/**
	 * Creates a new renderer object.
	 *
	 * @param   Document  $document  The JDocument instance to attach to the renderer
	 * @param   string    $type      The renderer type to instantiate
	 *
	 * @return  RendererInterface
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function createRenderer(Document $document, string $type): RendererInterface;
}

No other release has this exact content. See every version of this file.