?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Container/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src

?? Viewing: SimpleContainer.php

<?php

namespace Mpdf\Container;

class SimpleContainer implements \Mpdf\Container\ContainerInterface
{

	private $services;

	public function __construct(array $services)
	{
		$this->services = $services;
	}

	public function get($id)
	{
		if (!$this->has($id)) {
			throw new \Mpdf\Container\NotFoundException(sprintf('Unable to find service of key "%s"', $id));
		}

		return $this->services[$id];
	}

	public function has($id)
	{
		return isset($this->services[$id]);
	}

	public function getServices()
	{
		return $this->services;
	}

}


??

??