@name            setStatus ()

@author          Can Berkol

@since           1.0.4
@version         1.0.4

@use             $this->setModified()

@param           mixed $status

@return          object                $this
548786
public function setStatus($status) {
        if($this->setModified('status', $status)->isModified()) {
            $this->status = $status;
        }

        return $this;
    }
1176922
public function setStatus($status)
    {
        $allowed_values = array('active', 'paused', 'ready', 'delivered', 'cancelled', 'reverted');
        if ((!in_array($status, $allowed_values))) {
            throw new \InvalidArgumentException("Invalid value for 'status', must be one of 'active', 'paused', 'ready', 'delivered', 'cancelled', 'reverted'");
        }
        $this->container['status'] = $status;

        return $this;
    }
1342840
public function setStatus($status)
    {
        $title = $this->gameStorage->getTitle();
        $mode = $this->gameStorage->getGameModeCode();
        $script = $this->gameStorage->getGameInfos()->scriptName;

        foreach ($this->plugins as $pluginId => $plugin) {
            if (isset($this->widgetPositions[$pluginId])) {
                $options = $this->compatibleFetcher->getCompatibleData($this->widgetPositions[$pluginId], $title, $mode, $script);

                if (!is_null($options)) {
                    /** @var WidgetFactory $plugin */
                    $plugin->updateOptions($options['posX'], $options['posY'], AssociativeArray::getFromKey($options, 'options', []));
                }
            }
        }
    }
976578
public function withStatus(string $status): self
    {
        $this->status = JobEventStatusEnum::ensureValid($status);
        return $this;
    }
1060178
public function setStatus($status)
    {
        if (!in_array($status, [self::STATUS_DRAFT, self::STATUS_PUBLISHED, self::STATUS_REVIEW, self::STATUS_OFFLINE])) {
            throw new \InvalidArgumentException('Invalid status');
        }
        $this->status = $status;

        return $this;
    }
501956
public function setStatus($status)
    {
        if ($status) {
            $map = $this->factory->getConnection()->getCurrentMapInfo();
            $this->widget->setAuthorTime($map->author, $map->goldTime);
            $this->widget->create($this->allPlayers);
        } else {
            $this->widget->destroy($this->allPlayers);
        }
    }
92392
public static function setResponseStatus(int $status) : void
    {
        if (array_key_exists($status, Http::$http_status_messages)) {
            header('HTTP/1.1 ' . $status . ' ' . Http::$http_status_messages[$status]);
        }
    }
933903
public function setStatus($status) {

        $this->checkInArray($status, GDAXConstants::$fundingStatusValues);
        $this->status = $status;
        return $this;

    }
664165
public function setStatus($status) {

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

        $this->status = $status;

        return $this;

    }
312473
public function status($status)
    {
        if (!($status instanceof Status)) {
            $status = new Status($status);
        }

        $this->status = $status;

        return $this;
    }
1110450
public function setStatus(\Flowcode\ShopBundle\Entity\ProductOrderStatus $status = null)
    {
        $this->status = $status;

        return $this;
    }
450579
public function setStatus(int $status)
    {
        $redis = $this->bot->getRedis();
        $redis->set($this->bot->chat_id . ':status', $status);

        $this->status = $status;
    }
91146
public function setStatus($status)
    {
        if (!in_array($status, $this->getStatusses())) {
            throw new Exception(sprintf('Illegal status %1$s given. Must be one of %2$s', $status, implode(', ', $this->getStatusses())));
        }

        $this->status = $status;

        return $this;
    }
365044
public function setStatus(\Core\Entity\OrderStatus $order_status = null) {
        $this->order_status = $order_status;

        return $this;
    }
1293997
public function setStatus($status)
    {
        if (
            !in_array(
                $status,
                array(
                    self::STATUS_SUCCESS,
                    self::STATUS_ERROR,
                    self::STATUS_FAIL,
                )
            )
        ) {
            throw new Doozr_Base_Response_Rest_Exception(

            );
        }

        $this->status = $status;
    }
1050454
public function status($status = null)
    {
        if ($status === null) {
            return $this->subscription_status;
        } else {
            $this->subscription_status = $status;
            return $this;
        }
    }
453523
protected function setPlatformState($status)
    {
        $state = new MaintenanceState(array(
            MaintenanceState::STATUS => $status
        ));

        $this->getStorage()->setPlatformState($state);
    }