%PDF- %PDF-
Direktori : /home/lightco1/upgrade.lightco.com.au/libraries/fof30/Factory/Magic/ |
Current File : /home/lightco1/upgrade.lightco.com.au/libraries/fof30/Factory/Magic/BaseFactory.php |
<?php /** * @package FOF * @copyright 2010-2017 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU GPL version 2 or later */ namespace FOF30\Factory\Magic; use FOF30\Container\Container; use FOF30\Controller\DataController; use FOF30\Factory\Exception\ControllerNotFound; defined('_JEXEC') or die; abstract class BaseFactory { /** * @var Container|null The container where this factory belongs to */ protected $container = null; /** * Section used to build the namespace prefix. We have to pass it since in CLI scaffolding we need * to force the section we're in (ie Site or Admin). {@see \FOF30\Container\Container::getNamespacePrefix() } for valid values * * @var string */ protected $section = 'auto'; /** * Public constructor * * @param Container $container The container we belong to */ public function __construct(Container $container) { $this->container = $container; } /** * @return string */ public function getSection() { return $this->section; } /** * @param string $section */ public function setSection($section) { $this->section = $section; } }