Is this table a m:n pivot table?
@param bool $newStatus The new status.
@return bool The old status.
1812
public function isPivotTable($newStatus = false)
    {
        $oldStatus = $this->isPivotTable;

        if (func_num_args()) {
            $this->isPivotTable = $newStatus;
        } // if

        return $oldStatus;
    }
704794
public function newPivot(array $attributes = [], $exists = false)
	{
		$pivot = new MorphPivot($this->parent, $attributes, $this->table, $exists);

		$pivot->setPivotKeys($this->foreignKey, $this->otherKey)
			  ->setMorphType($this->morphType)
			  ->setMorphClass($this->morphClass);

		return $pivot;
	}
321707
public function wherePivotIn($column, $values, $boolean = 'and', $not = false)
	{
		$this->pivotWheres[] = func_get_args();

		return $this->whereIn($this->table.'.'.$column, $values, $boolean, $not);
	}
588464
public void changeStatus(int newStatus)
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) });

        _status = newStatus;

        if (tc.isEntryEnabled())
            Tr.exit(tc, "changeStatus");
    }
91406
public function nextRow($reset = true)
    {
        $this->currentRow += 1;
        $this->updateMaxRow($this->currentRow);
        if ($reset) {
            $this->currentColumn = reset($this->columns);
        }

        return true;
    }
527688
protected function hasPaymentWithStatus($status)
    {
        $hasStatus = false;
        $payments = $this->getArray();

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

        return $hasStatus;
    }
918356
public static function merge(array $sids, array $newSids)
    {
        $existingSids = [];

        foreach ($sids as $sid) {
            $existingSids[] = $sid->getType().'::'.$sid->getIdentifier();
        }

        foreach ($newSids as $sid) {
            $key = $sid->getType().'::'.$sid->getIdentifier();

            if (!\in_array($key, $existingSids, true)) {
                $sids[] = $sid;
                $existingSids[] = $key;
            }
        }

        return $sids;
    }
1274533
public void updateStatus(JobStatus newStatus) {
    JobMonitor monitor = getJobMonitor(newStatus);
    monitor.updateStatus(newStatus);
  }
1145801
protected function process_status_change($oldstatus) {
        // Store the dependent status.
        $prevalue = $this->dependentsetting->get_status();
        // Store the current status.
        $currentstatus = $this->setting->get_status();
        if ($currentstatus == base_setting::NOT_LOCKED) {
            if ($prevalue == base_setting::LOCKED_BY_HIERARCHY &&
                    !$this->evaluate_disabled_condition($this->setting->get_value())) {
                // Dependency has changes, is not fine, unlock the dependent setting.
                $this->dependentsetting->set_status(base_setting::NOT_LOCKED);
            }
        } else {
            // Make sure the dependent setting is also locked, in this case by hierarchy.
            $this->dependentsetting->set_status(base_setting::LOCKED_BY_HIERARCHY);
        }
        // Return true if the dependent setting has changed.
        return ($prevalue != $this->dependentsetting->get_status());
    }
16038
public function isTransaction($newValue = null)
    {
        if (null !== $newValue) {
            $this->isTransaction = (bool) $newValue;
        }
        return $this->isTransaction;
    }
829600
public function isSource($newStatus = true)
    {
        $oldStatus = $this->isSource;

        if (func_num_args()) {
            $this->isSource = $newStatus;
        } // if

        return $oldStatus;
    }
767372
protected function updateStatus($newStatus)
    {
        if ($newStatus < CommandInterface::STATUS_PENDING || $newStatus > CommandInterface::STATUS_FAILED) {
            throw new \InvalidArgumentException('Command status updated to invalid value ' . $newStatus . '. $newStatus must be one of CommandInterface::STATUS_* constants',
                1457113082);
        }

        $oldStatus = $this->status;
        $this->status = $newStatus;

        foreach ($this->statusUpdateObservers as $observer) {
            $observer->update($this, $oldStatus);
        }
    }
369553
public function addNewSheet()
    {
        $newSheetIndex = count($this->worksheets);
        $sheet = new Sheet($newSheetIndex, $this->internalId);

        $worksheetFilesFolder = $this->fileSystemHelper->getXlWorksheetsFolder();
        $worksheet = new Worksheet($sheet, $worksheetFilesFolder, $this->sharedStringsHelper, $this->styleHelper, $this->shouldUseInlineStrings);
        $this->worksheets[] = $worksheet;

        return $worksheet;
    }
1345899
public function status($status = null) {
			if ($status != null) {
				if (array_key_exists($status, $this->_statusCode)) {
					$this->_status = $status;
				}

				return true;
			}
			else {
				return $this->_status;
			}
		}
989729
protected function buildPortStatusRows(array $status)
    {
        $rows = [];

        foreach ($status['ports'] as $port => $value) {
            $row = [
                $port,
                $value['status'],
            ];

            $rows[] = $row;
        }
        $warnings = $status['state']['warning'];

        $rows[] = new TableSeparator();
        $rows[] = [new TableCell(
            sprintf('There is %d warning(s) on %s!', $warnings, $status['host']),
            ['colspan' => 2]
        )];

        return $rows;
    }
1368728
public function addStatus(OpportunityStatus $opportunityStatus): OpportunityStatus
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use create() instead.', __METHOD__), E_USER_DEPRECATED);

        return $this->create($opportunityStatus);
    }
449245
public function setStatus($status = true)
    {
        if ($this->getRootSection() instanceof Section) {
            $this->getRootSection()->setStatus((bool) $status);
        }

        return (bool) $status;
    }