identifier = $identifier; } /** * @return string */ public function getIdentifier(): string { return $this->identifier; } /** * @return string */ public function getFormatCode(): string { return $this->formatCode; } /** * @param string $formatCode * @return Mode */ public function setFormatCode(string $formatCode): Mode { $this->formatCode = $formatCode; return $this; } /** * @param array $fileExtensions * @return self */ public function bindToFileExtensions(array $fileExtensions): Mode { $this->fileExtensions = $fileExtensions; return $this; } /** * @return array */ public function getBoundFileExtensions(): array { return $this->fileExtensions; } /** * @return Mode */ public function setAsDefault(): Mode { $this->isDefault = true; return $this; } /** * @return bool */ public function isDefault(): bool { return $this->isDefault; } }