public function AcquiaPurgeQueueStatusTrait::getStatusString in Acquia Purge 7
File
- lib/
queue/ AcquiaPurgeQueueStatusTrait.php, line 74
Class
- AcquiaPurgeQueueStatusTrait
- Provides methods capable of letting multiple actors set a SUCCEEDED or FAILED status, which can then be evaluated to a single overall outcome.
Code
public function getStatusString() {
$mapping = array(
SELF::FRESH => 'FRESH',
SELF::SUCCEEDED => 'SUCCEEDED',
SELF::FAILED => 'FAILED',
);
return $mapping[$this
->getStatus()];
}