/** * Return the name to the backup file. * * @param boolean $plain * @return string */ public function getFilename($plain = false) { $suffix = ''; if (!$plain) { $suffix .= $this->shouldBeCompressed() ? '.' . $this->compressor->getSuffix() : ''; $suffix .= $this->shouldBeEncrypted() ? '.' . $this->crypter->getSuffix() : ''; } return $this->filename . $suffix; }