FolderName = $sFolderName; $this->IsWritable = $bIsWritable; $this->Exists = null; $this->Recent = null; $this->Flags = array(); $this->PermanentFlags = array(); $this->Unread = null; $this->Uidnext = null; $this->HighestModSeq = null; } public static function NewInstance(string $sFolderName, bool $bIsWritable) : self { return new self($sFolderName, $bIsWritable); } public function IsFlagSupported(string $sFlag) : bool { return \in_array('\\*', $this->PermanentFlags) || \in_array($sFlag, $this->PermanentFlags) || \in_array($sFlag, $this->Flags); } }