<?php

namespace WPStaging\Staging\Tasks\StagingSite\Filesystem;

use WPStaging\Framework\Filesystem\PartIdentifier;
use WPStaging\Staging\Tasks\FileCopierTask;

class CopyWpIncludesTask extends FileCopierTask
{
    public static function getTaskName(): string
    {
        return parent::getTaskName() . '_' . PartIdentifier::WP_INCLUDES_PART_IDENTIFIER;
    }

    public static function getTaskTitle(): string
    {
        return 'Copying "wp-includes" directory to Staging Site';
    }

    protected function getFileIdentifier(): string
    {
        return PartIdentifier::WP_INCLUDES_PART_IDENTIFIER;
    }

    protected function getLoggerFriendlyName(): string
    {
        return 'wp-includes';
    }

    protected function getIsExcluded(): bool
    {
        return $this->jobDataDto->getIsWpIncludesExcluded();
    }
}
