@param $status

@return $this

@throws \InvalidArgumentException
504354
public function setStatus($status)
    {
        $status = strtoupper($status);
        if ($status == self::STATUS_CANCELLED
            || $status == self::STATUS_CONFIRMED
            || $status == self::STATUS_TENTATIVE
        ) {
            $this->status = $status;
        } else {
            throw new \InvalidArgumentException('Invalid value for status');
        }

        return $this;
    }
1059945
public function setStatus($status)
    {
        if (!$status instanceof Status) {
            $status = new Status($status);
        }
        $this->status = $status;
    }
80673
public function setStatusFrom(\Sulu\Bundle\Sales\ShippingBundle\Entity\ShippingStatus $statusFrom = null)
    {
        $this->statusFrom = $statusFrom;
    
        return $this;
    }
739294
public function setStatus($status)
    {
        if (!in_array($status, array(
            self::STATUS_ACTIVE,
            self::STATUS_INACTIVE,
        ))) {
            throw new \InvalidArgumentException("Invalid status in ".get_class($this).".");
        }

        $this->status = $status;

        return $this;
    }
441027
public function status($status)
    {
        $httpStatus = (string) $this->response->getStatusCode();
        if (is_array($status) && !in_array($httpStatus, $status)) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        if (is_string($status) && $httpStatus !== $status) {
            throw new \RuntimeException(
                "Unexpected response status code: {$httpStatus}"
            );
        }

        return $this;
    }
957320
public function setStatus($status, $calledFromActivity = false)
    {
        parent::setStatus($status);

        // Change the Activity as well only if this method has not been called by an Activity instance to avoid recursion.
        if (!$calledFromActivity && $this->getActivity() && $this->getActivity()->getEqualsOperation()) {
            $this->getActivity()->setStatus($this->status, true);
        }

        return $this;
    }
70969
public function status($status = null)
    {
        if (null === $status) {
            return $this->status;
        }

        $this->status = $status;
        return $this;
    }
402159
public function setStatus($status)
    {
        $allowedValues = $this->getStatusAllowableValues();
        if (!in_array($status, $allowedValues, true)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'status', must be one of '%s'",
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['status'] = $status;

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

        return $result;
    }
313231
public function setStatus(\Sulu\Bundle\Sales\ShippingBundle\Entity\ShippingStatus $status)
    {
        $this->status = $status;
    
        return $this;
    }
241151
public function setStatus($status)
    {
        if ($status !== self::STATUS_UP && $status !== self::STATUS_DOWN) {
            $message = "Value '%s' must be ".self::STATUS_UP.' or '.self::STATUS_DOWN;
            throw new \InvalidArgumentException(sprintf($message, $status));
        }

        $this->status = $status;

        return $this;
    }
711381
public function muted($status = false)
    {
        if($status) {
            $this->attributes['muted'] = true;
        } else {
            unset($this->attributes['muted']);
        }

        return $this;
    }
270699
public function setStatus($status)
    {
        $validStatus = [
            100,
            101,
            102,
            200,
            201,
            202,
            203,
            204,
            205,
            206,
            207,
            208,
            300,
            301,
            302,
            303,
            304,
            305,
            306,
            307,
            400,
            401,
            402,
            403,
            404,
            405,
            406,
            407,
            408,
            409,
            410,
            411,
            412,
            413,
            414,
            415,
            416,
            417,
            418,
            422,
            423,
            424,
            425,
            426,
            428,
            429,
            431,
            500,
            501,
            502,
            503,
            504,
            505,
            506,
            507,
            508,
            511,
        ];

        if (false === in_array($status, $validStatus, false)) {
            throw new \InvalidArgumentException(sprintf(
                'Provided status does not match a valid HTTP Status Code.',
                $status
            ));
        }
        $this->status = (int) $status;
    }
21971
public function withStatus(string $status): self
    {
        $this->status = ScheduledActionStatusEnum::ensureValid($status);
        return $this;
    }
1357028
public function status($status, array $args = []): PostTypeInterface
    {
        if (is_array($status)) {
            foreach ($status as $key => $params) {
                if (is_int($key)) {
                    $this->status($params);
                } elseif (is_string($key) && is_array($params)) {
                    $this->status($key, $params);
                }
            }

            return $this;
        }

        $this->prepareStatus($status, $args);

        return $this;
    }
755266
public function status($status = null)
    {
        if (is_null($status)) {
            unset($this->filters['post_status']);
        } else {
            $this->filters['post_status'] = $status;
        }

        return $this;
    }
56351
public function windowStatus($status = null)
    {
        if ($status === null) {
            return $this->_windowStatus;
        }
        $this->_windowStatus = $status;

        return $this;
    }