PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
beacons.sandbox.dos-group.com
/
vendor
/
dos
/
common
/
src
/
Dos
/
Intl
<?php /** * Created by PhpStorm. * User: Stefano.Balzarotti * Date: 14.12.2015 * Time: 18:11 */ namespace Dos\Intl; use Dos\Exception\PathNotFoundException; class LocaleDomain implements LocaleDomainInterface { const DEFAULT_ENCODING = 'UTF-8'; /** * @var string */ private $path; /** * @var array */ private $domains; /** * @var string */ private $encoding; /** * LocaleDomain constructor. * @param string $path * @param string[] $domains */ public function __construct($path, array $domains = ['messages']) { $this->setPath($path); $this->setDomains($domains); $this->setEncoding(self::DEFAULT_ENCODING); } /** * @return string */ public function getPath() { return $this->path; } /** * @param string $path * @throws PathNotFoundException */ public function setPath($path) { if (file_exists($path) && is_dir($path)) { $this->path = $path; } else { throw new PathNotFoundException('Locale messages path not found: ' . $path); } } /** * @param string $domain */ public function registerDomain($domain) { $this->domains[] = $domain; } /** * @return array */ public function getDomains() { return $this->domains; } /** * @param array $domains */ public function setDomains(array $domains) { $this->domains = $domains; } /** * @return string */ public function getEncoding() { return $this->encoding; } /** * @param string $encoding */ public function setEncoding($encoding) { $this->encoding = $encoding; } }
[-] LocaleDALInterface.php
[open]
[-] LocaleDomainInterface.php
[open]
[+]
..
[-] LocaleDomain.php
[open]
[-] LocaleManagerInterface.php
[open]
[-] LocaleManager.php
[open]