/** * @return null|string */ public function getError() { if ($this->getStatus() === StorageApiEvent::TYPE_SUCCESS || $this->getStatus() === 'processing' || $this->getStatus() === null) { return null; } return $this->event->getDescription() ? $this->event->getDescription() : 'Task error'; }