File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/PHPViewFactory.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/View/PHPViewFactory.php 0000644 00000001460 15154461246 0032063 0 ustar 00 var/www/vhosts <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\View;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Service;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\View;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\ViewFactory;
defined( 'ABSPATH' ) || exit;
/**
* Class PHPViewFactory
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\View
*/
final class PHPViewFactory implements Service, ViewFactory {
/**
* Create a new view object.
*
* @param string $path Path to the view file to render.
*
* @return View Instantiated view object.
*
* @throws ViewException If an invalid path was passed into the View.
*/
public function create( string $path ): View {
return new PHPView( $path, $this );
}
}