private function _initialize()
{
$params = $this->getParameters();
if ($params !== null) {
foreach ($params as $param) {
switch ($param->getType()) {
case self::DOMAIN_KEY:
$this->setDomain($param->getValue());
break;
case self::DIR_KEY:
$this->setDir($this->project->resolveFile($param->getValue()));
break;
case self::LOCALE_KEY:
$this->setLocale($param->getValue());
break;
}
// switch
}
}
// if params !== null
}