/** * @return boolean */ public function isDownloading() { if (is_int($this->status)) { return $this->status == self::STATUS_DOWNLOAD || $this->status == self::STATUS_DOWNLOAD_WAIT; } else { return $this->status->isDownloading(); } }
/** * @return boolean */ public function isDownloading() { return $this->status->isDownloading(); }