Emails=[]; $this->Extensions=[]; $this->ExtendedValidation=false; $this->DefaultStatus='completed'; $this->ConfirmationOptions=(new ConfirmationBaseOptionsDTO())->Merge(); $this->EntryNumbering=(new EntryNumberingOptionsDTO())->Merge(); $this->Restrictions=[]; $this->ServerDependencies=[]; $this->Meta=[]; $this->AddType("Emails","EmailItemOptionsDTO"); $this->AddType("Extensions","Object"); $this->AddType("Restrictions","RestrictionBaseOptionsDTO"); $this->AddType("ServerDependencies","ServerDependencyDTO"); $this->AddType("Meta","Object"); } public function GetValueFromLoader($property,$value){ switch($property){ case "Restrictions": return \rednaoeasycalculationforms\DTO\core\Factories\RestrictionFactory::GetRestrictions($value); default: return parent::GetValueFromLoader($property, $value); } } }