get(self::RESTORE_COMPATIBILITY_CHECK, true); } public function isRestoreAlternatePathEnabled():bool { return (bool) $this->get(self::RESTORE_ALTERNATE_PATH, false); } public function isRestoreWpContentOnlyEnabled():bool { return (bool) $this->get(self::RESTORE_WP_CONTENT_ONLY, false); } public function isRestoreAllowCrossDomain():bool { return (bool) $this->get(self::RESTORE_ALLOW_CROSS_DOMAIN, false); } /** * @param bool $value * * @return void */ public function setRestoreCompatibilityCheck(bool $value):void { $this->set(self::RESTORE_COMPATIBILITY_CHECK, $value); } public function setRestoreAlternatePath(bool $value):void { $this->set(self::RESTORE_ALTERNATE_PATH, $value); } public function setRestoreWpContentOnly(bool $value):void { $this->set(self::RESTORE_WP_CONTENT_ONLY, $value); } public function setRestoreAllowCrossDomain(bool $value):void { $this->set(self::RESTORE_ALLOW_CROSS_DOMAIN, $value); } /** * @return bool[] */ public function getDisplay():array { return [ self::RESTORE_COMPATIBILITY_CHECK => $this->isRestoreCompatibilityCheckEnabled() ? 1 : 0, self::RESTORE_ALLOW_CROSS_DOMAIN => $this->isRestoreAllowCrossDomain() ? 1 : 0, self::RESTORE_ALTERNATE_PATH => $this->isRestoreAlternatePathEnabled() ? 1 : 0, self::RESTORE_WP_CONTENT_ONLY => $this->isRestoreWpContentOnlyEnabled() ? 1 : 0, ]; } /** * @return bool[] */ public function getDisplayCLI():array { return [ 'Restore Compatability Check' => $this->isRestoreCompatibilityCheckEnabled(), 'Restore Allow Cross Domain' => $this->isRestoreAllowCrossDomain(), 'Restore Alternate Path' => $this->isRestoreAlternatePathEnabled(), 'Limit restore to wp-content only' => $this->isRestoreWpContentOnlyEnabled(), ]; } /** * @return void */ public function validateFields():void { } }