Check status existence.

@param string $status string representation of the status

@return bool
962348
public function statusExist($status)
    {
        $generator = $this->getStatuses();
        $list = iterator_to_array($generator);

        return in_array($status, $list);
    }
1229682
public function getValidationStatusDescription($status)
    {
        $options = $this->getValidationStatusOptions();
        if (!isset($options[$status])) {
            $status = static::ADDRESS_UNKNOWN;
        }

        return $options[$status];
    }
884676
public function inGroup(bool $status = null) : bool
    {
        if (!is_null($status)) {
            $this->inGroup = $status;
        }
        return $this->inGroup;
    }
1050454
public function status($status = null)
    {
        if ($status === null) {
            return $this->subscription_status;
        } else {
            $this->subscription_status = $status;
            return $this;
        }
    }
372704
private function parseExitReason($status) {
        if (pcntl_wifexited($status)) {
            $exitCode = pcntl_wexitstatus($status);
            return "退出原因：正常退出，退出状态码：{$exitCode}";
        } elseif (pcntl_wifsignaled($status)) {
            $sigNum = pcntl_wtermsig($status);
            return "退出原因：被信号终止，信号代号：{$sigNum}";
        }

        return '退出原因：未知';
    }
1051428
private function getMessage($status) {
		if($this->messages === false) {
			$this->messages = require(__DIR__ . '/messages.php');
		}

		return isset($this->messages[$status]) ? $this->messages[$status] : "Error: $status";
	}
664165
public function setStatus($status) {

        if ( !in_array($status, range(0, 3)) ) throw new InvalidArgumentException("Invalid status $status");

        $this->status = $status;

        return $this;

    }
16339
public function setStatus($name = '', $status = self::START) {
        if ($name != '') {
            if (isset($this->_events[$name])) {
                $this->_events[$name]->setStatus($status);

                return true;
            }
            else {
                return false;
            }
        }
        else {
            return false;
        }
    }
265010
public function status($status)
  {
    if (is_string($status)) {
      switch ($status) {
        case 'success':
          $this->status = JSendResponse::STATUS_SUCCESS;
          break;
        case 'error':
          $this->status = JSendResponse::STATUS_ERROR;
          break;
        case 'fail':
          $this->status = JSendResponse::STATUS_FAIL;
          break;
        default:
          throw new \InvalidArgumentException("Unable to parse status '${status}'");
      }
    } else {
      $this->status = $status;
    }

    return $this;
  }
496165
public static function is_active($status) {
        // List of statuses which doesn't require any further processing.
        $finalstatuses = [
            self::DATAREQUEST_STATUS_COMPLETE,
            self::DATAREQUEST_STATUS_CANCELLED,
            self::DATAREQUEST_STATUS_REJECTED,
            self::DATAREQUEST_STATUS_DOWNLOAD_READY,
            self::DATAREQUEST_STATUS_EXPIRED,
            self::DATAREQUEST_STATUS_DELETED,
        ];

        return !in_array($status, $finalstatuses);
    }
391920
public function setStatus($status)
    {
        $result = \Eix\Services\Net\Http::isStatusCodeValid($status);
        if ($result) {
            $this->status = $status;
        }

        return $result;
    }
1269035
private function mapStatusToVersionInfoStatus($status)
    {
        if (array_key_exists($status, self::VERSION_STATUS)) {
            return self::VERSION_STATUS[$status];
        }

        throw new InvalidArgumentException(
            'status',
            sprintf(
                "Status %s can't be mapped to VersionInfo status.",
                $status
            )
        );
    }
527688
protected function hasPaymentWithStatus($status)
    {
        $hasStatus = false;
        $payments = $this->getArray();

        foreach ($payments as $payment) {
            if ($status == $payment->getStatus()) {
                $hasStatus = true;
                break;
            }
        }

        return $hasStatus;
    }
171109
public function isSMTP(bool $status = false)
    {
        if ($status === true) {
            $this->smtp['status'] = $status;
        } else {
            $this->smtp['status'] = $status;
        }
    }
1065508
public function setStatus($status)
    {
        if (!empty($status) && ctype_print($status)) {
            $this->status = trim($status);
        }

        return $this;
    }
1242580
public function setStatus($status)
    {
        $status = $status ? self::STATUS_ENABLED : self::STATUS_DISABLED;

        $this->setData('status', $status);
        return $this;
    }
833670
public static function label($status)
    {
        $statuses = [
            SeoChecker::STATUS_DANGER  => 'danger',
            SeoChecker::STATUS_GOOD    => 'success',
            SeoChecker::STATUS_WARNING => 'warning',
        ];

        return Arr::get($statuses, $status, 'default');
    }