Allows to set the loop attribute

@param bool $status
@return $this
198901
public function loop($status = false)
    {
        if($status) {
            $this->attributes['loop'] = true;
        } else {
            unset($this->attributes['loop']);
        }

        return $this;
    }
1360765
public function setStatusCode($statusCode)
    {
        $statusCode = intval($statusCode);
        $this->statusCode = ($statusCode > 0) ? $statusCode : self::RESPONSE_OK;
        return $this;
    }
202554
public function setStatus($status)
    {
        $this->redis->hset(self::redisKey($this), 'status', $status);

        $oldstatus = $this->status;
        $this->status = $status;

        switch ($status) {
            case self::STATUS_NEW:
                break;
            case self::STATUS_RUNNING:
                if ($oldstatus != self::STATUS_NEW) {
                    Event::fire(Event::WORKER_RESUME, $this);
                }

                break;
            case self::STATUS_PAUSED:
                Event::fire(Event::WORKER_PAUSE, $this);
                break;
        }
    }
80673
public function setStatusFrom(\Sulu\Bundle\Sales\ShippingBundle\Entity\ShippingStatus $statusFrom = null)
    {
        $this->statusFrom = $statusFrom;
    
        return $this;
    }
754736
public function withStatus($status)
    {
        if (is_int($status) && $status >= 100 && $status < 600) {
            $this->status = $status;
        } else {
            $this->status = 500;
        }

        return $this;
    }
912428
public function status($status)
    {
        if (!$this->statusIsNullable || $status !== null) {
            Checkers::checkStatus($status, null);
        }
        $this->status = $status;
        return $this;
    }
384093
public function setStatus($status)
    {

        $node = $this->getStatus(false);
        if(!$node){
            $node = $this->createElement('status');
            $this->doc->appendChild($node);
        }
        $node->nodeValue = htmlspecialchars($status);

    }
1095680
public function setStatus($status)
    {
        if($entity = $this->getIterator()->current()) {
            $entity->setStatusMessage($status);
        }

        return $this;
    }
1328062
public function setStatus($status = null)
    {
        switch ($status) {
            //TODO implement all status codes
            case '500':
                $this->setStatusCode('HTTP/1.0 500 Internal Server Error');
                break;
            case '404':
                $this->setStatusCode('HTTP/1.0 404 Not Found');
                break;
            case '403':
                $this->setStatusCode('HTTP/1.0 403 Forbidden');
                break;
            case '402':
                $this->setStatusCode('HTTP/1.0 402 Payment Required');
                break;
            case '401':
                $this->setStatusCode('HTTP/1.0 401 Unauthorized');
                break;
            case '400':
                $this->setStatusCode('HTTP/1.0 400 Bad Request');
                break;
            case '200':
                $this->setStatusCode(Template::STATUS_OK);
                break;
            default:
                $this->setStatusCode('HTTP/1.0 ' .($status ?: 200));
                break;
        }
        return $this;
    }
711381
public function muted($status = false)
    {
        if($status) {
            $this->attributes['muted'] = true;
        } else {
            unset($this->attributes['muted']);
        }

        return $this;
    }
913314
public function setStatus(int $code, string $status)
    {
        return $this
            ->set('code', $code)
            ->setHeader('Status', $status);
    }
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;
    }
1272246
function setStatus( $status )
    {
        if ( $status instanceof eZOrderStatus )
            $this->StatusID = $status->attribute( 'id' );
        else
            $this->StatusID = $status;
        $this->setStatusModified( time() );
    }
1261772
protected function setStatusStore($status)
    {
        $id = $this->getParam(0);
        $all = $this->getParam('all');

        if (!isset($id) && empty($all)) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        $result = false;

        if (isset($id)) {

            if (!is_numeric($id)) {
                $this->errorAndExit($this->text('Invalid argument'));
            }

            $result = $this->store->update($id, array('status' => $status));

        } else if (!empty($all)) {

            $updated = $count = 0;
            foreach ((array) $this->store->getList() as $store) {
                $count++;
                $updated += (int) $this->store->update($store['store_id'], array('status' => $status));
            }

            $result = $count && $count == $updated;
        }

        if (empty($result)) {
            $this->errorAndExit($this->text('Unexpected result'));
        }
    }
450579
public function setStatus(int $status)
    {
        $redis = $this->bot->getRedis();
        $redis->set($this->bot->chat_id . ':status', $status);

        $this->status = $status;
    }
984939
public function setStatus($status) {

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

    }
359868
public function setStatus($status)
    {
        if ($this->isValidStatus($status)) {
            $this->status = $status;
            $this->saveState();
        } else {
            throw new \InvalidArgumentException(
                sprintf("Status '%s' is not a valid status", $status)
            );
        }
    }