| Current Path : /proc/1908984/root/proc/self/root/proc/thread-self/root/proc/1147586/cwd/ |
| Current File : //proc/1908984/root/proc/self/root/proc/thread-self/root/proc/1147586/cwd/BaseFactory.php.tar |
home/digilove/public_html/libraries/fof40/Factory/Magic/BaseFactory.php 0000644 00000002110 15235505736 0022041 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace FOF40\Factory\Magic;
defined('_JEXEC') || die;
use FOF40\Container\Container;
abstract class BaseFactory
{
/**
* @var Container|null The container where this factory belongs to
*/
protected $container;
/**
* Section used to build the namespace prefix. We have to pass it since in CLI we need
* to force the section we're in (ie Site or Admin). {@see \FOF40\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(): string
{
return $this->section;
}
/**
* @param string $section
*/
public function setSection(string $section): void
{
$this->section = $section;
}
}
home/digilove/public_html/libraries/fof30/Factory/Magic/BaseFactory.php 0000644 00000002166 15241047751 0022046 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 2 or later
*/
namespace FOF30\Factory\Magic;
use FOF30\Container\Container;
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;
}
}
home/digilove/public_html/110/libraries/fof40/Factory/Magic/BaseFactory.php 0000644 00000002110 15243142214 0022325 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace FOF40\Factory\Magic;
defined('_JEXEC') || die;
use FOF40\Container\Container;
abstract class BaseFactory
{
/**
* @var Container|null The container where this factory belongs to
*/
protected $container;
/**
* Section used to build the namespace prefix. We have to pass it since in CLI we need
* to force the section we're in (ie Site or Admin). {@see \FOF40\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(): string
{
return $this->section;
}
/**
* @param string $section
*/
public function setSection(string $section): void
{
$this->section = $section;
}
}