mirror of https://github.com/hauke68/Magallanes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
496 B
22 lines
496 B
<?php |
|
namespace Task; |
|
|
|
use Mage\Task\AbstractTask; |
|
use Mage\Task\Releases\RollbackAware; |
|
|
|
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
|
{ |
|
public function getName() |
|
{ |
|
if ($this->inRollback()) { |
|
return 'A Sample Task aware of rollbacks [in rollback]'; |
|
} else { |
|
return 'A Sample Task aware of rollbacks [not in rollback]'; |
|
} |
|
} |
|
|
|
public function run() |
|
{ |
|
return true; |
|
} |
|
} |