Sulu\Component\Content\Mapper\Translation\MultipleTranslatedProperties::__construct PHP Method

__construct() public method

public __construct ( $names, $languageNamespace, $namespace = '' )
    public function __construct($names, $languageNamespace, $namespace = '')
    {
        $this->languageNamespace = $languageNamespace;
        $this->properties = [];
        foreach ($names as $name) {
            $propertyName = (!empty($namespace) ? $namespace . '-' : '') . $name;
            $this->properties[$name] = new Property($propertyName, [], 'none', false, true);
        }
    }