jetpack
/
vendor
/
wp-php-toolkit
/
data-liberation
/
Importer
/
class-attachmentdownloaderevent.php
class-attachmentdownloader.php
3 weeks ago
class-attachmentdownloaderevent.php
3 weeks ago
class-entityimporter.php
3 weeks ago
class-entityiteratorchain.php
3 weeks ago
class-filevisitorevent.php
3 weeks ago
class-importsession.php
3 weeks ago
class-importutils.php
3 weeks ago
class-retryfrontloadingiterator.php
3 weeks ago
class-streamimporter.php
3 weeks ago
class-attachmentdownloaderevent.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WordPress\DataLiberation\Importer; |
| 4 | |
| 5 | class AttachmentDownloaderEvent { |
| 6 | |
| 7 | const SUCCESS = '#success'; |
| 8 | const FAILURE = '#failure'; |
| 9 | const ALREADY_EXISTS = '#already_exists'; |
| 10 | const IN_PROGRESS = '#in_progress'; |
| 11 | |
| 12 | public $type; |
| 13 | public $resource_id; |
| 14 | public $error; |
| 15 | |
| 16 | public function __construct( $resource_id, $type, $error = null ) { |
| 17 | $this->resource_id = $resource_id; |
| 18 | $this->type = $type; |
| 19 | $this->error = $error; |
| 20 | } |
| 21 | } |
| 22 |