StagingSiteDeleteDataDto.php
56 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Staging\Dto\Job; |
| 4 | |
| 5 | use WPStaging\Framework\Job\Dto\JobDataDto; |
| 6 | use WPStaging\Staging\Interfaces\StagingDatabaseDtoInterface; |
| 7 | use WPStaging\Staging\Interfaces\StagingSiteDtoInterface; |
| 8 | use WPStaging\Staging\Traits\StagingDatabaseDtoTrait; |
| 9 | use WPStaging\Staging\Traits\WithStagingSiteDto; |
| 10 | |
| 11 | class StagingSiteDeleteDataDto extends JobDataDto implements StagingDatabaseDtoInterface, StagingSiteDtoInterface |
| 12 | { |
| 13 | use StagingDatabaseDtoTrait; |
| 14 | use WithStagingSiteDto; |
| 15 | |
| 16 | /** @var bool */ |
| 17 | private $isDeletingFiles = false; |
| 18 | |
| 19 | /** @var bool */ |
| 20 | private $isDeletingTables = false; |
| 21 | |
| 22 | /** |
| 23 | * @param bool $deletingFiles |
| 24 | * @return void |
| 25 | */ |
| 26 | public function setIsDeletingFiles(bool $deletingFiles) |
| 27 | { |
| 28 | $this->isDeletingFiles = $deletingFiles; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @return bool |
| 33 | */ |
| 34 | public function getIsDeletingFiles(): bool |
| 35 | { |
| 36 | return $this->isDeletingFiles; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @param bool $deletingDatabase |
| 41 | * @return void |
| 42 | */ |
| 43 | public function setIsDeletingTables(bool $deletingDatabase) |
| 44 | { |
| 45 | $this->isDeletingTables = $deletingDatabase; |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * @return bool |
| 50 | */ |
| 51 | public function getIsDeletingTables(): bool |
| 52 | { |
| 53 | return $this->isDeletingTables; |
| 54 | } |
| 55 | } |
| 56 |