/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Export
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Export/ExportDirectory.php (2001B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Core\Export;
use PrestaShop\PrestaShop\Core\ConfigurationInterface;
/**
* ImportDirectory class is responsible for returning export directory & data related to it.
*/
final class ExportDirectory
{
/**
* @var ConfigurationInterface
*/
private $configuration;
/**
* @param ConfigurationInterface $configuration
*/
public function __construct(ConfigurationInterface $configuration)
{
$this->configuration = $configuration;
}
/**
* Get path to import directory.
*
* @return string
*/
public function getDir()
{
return $this->configuration->get('_PS_ADMIN_DIR_') . DIRECTORY_SEPARATOR . 'export' . DIRECTORY_SEPARATOR;
}
/**
* Use export directory object as a string.
*
* @return string
*/
public function __toString()
{
return $this->getDir();
}
}