sTitle = $sTitle; $this->aSubBlocks = $aSubBlocks; } /** * @param $sSectionStateStorageKey * * @return self */ public function EnableSaveCollapsibleState($sSectionStateStorageKey) { $this->bIsSaveCollapsibleStateEnabled = true; $this->sSectionStateStorageKey = 'UI-Collapsible__'.$sSectionStateStorageKey; return $this; } public function IsOpenedByDefault(): bool { return $this->bIsOpenedByDefault; } /** * @param bool $bIsOpenedByDefault * * @return $this */ public function SetOpenedByDefault(bool $bIsOpenedByDefault) { $this->bIsOpenedByDefault = $bIsOpenedByDefault; return $this; } public function GetTitle(): string { return $this->sTitle; } public function IsSaveCollapsibleStateEnabled(): bool { return $this->bIsSaveCollapsibleStateEnabled; } public function GetSessionCollapsibleStateStorageKey(): string { return $this->sSectionStateStorageKey; } }