public function AcquiaPurgeQueueStatusTrait::getStatusBoolean in Acquia Purge 7
File
- lib/
queue/ AcquiaPurgeQueueStatusTrait.php, line 62
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 getStatusBoolean() {
$mapping = array(
SELF::FRESH => NULL,
SELF::SUCCEEDED => TRUE,
SELF::FAILED => FALSE,
);
return $mapping[$this
->getStatus()];
}