for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SixtyEightPublishers\i18n\Profile;
use Nette\SmartObject;
final class Profile implements ProfileInterface
{
use SmartObject;
/** @var string */
private $name;
/** @var array */
private $languages;
private $countries;
private $currencies;
private $domains;
/** @var bool */
private $enabled;
/**
* @param string $name
* @param string[] $languages
* @param string[] $countries
* @param string[] $currencies
* @param string[] $domains
* @param bool $enabled
*/
public function __construct(string $name, array $languages, array $countries, array $currencies, array $domains, bool $enabled = TRUE)
$this->name = $name;
$this->languages = $languages;
$this->countries = $countries;
$this->currencies = $currencies;
$this->domains = $domains;
$this->enabled = $enabled;
}
* @return string
public function getName(): string
return $this->name;
* @return array
public function getCountries(): array
return $this->countries;
public function getLanguages(): array
return $this->languages;
public function getCurrencies(): array
return $this->currencies;
public function getDomains(): array
return $this->domains;
* @return bool
public function isEnabled(): bool
return $this->enabled;