Setter for top.

@param string $top
Top.

@return $this
512602
public function setTop($top) {
    if (!$this->isSupportedUnit($top)) {
      $this->triggerError("Value \"${top}\" does not use a supported unit.");
    }
    else {
      $this->top = $top;
    }
    return $this;
  }
1371235
public function setStopSignal(string $stopSignal = 'SIGTERM')
    {
        $this->stopSignal = $stopSignal;

        $this->raw = array_merge($this->raw, ['StopSignal' => $stopSignal]);

        return $this;
    }
920671
public function set($name, $value)
    {
        if ( !$value ) {
            $this->attributes->remove($name);

            return $this;
        }
        $this->attributes->set($name, $value);

        return $this;
    }
409870
public static void setTop(Element element, int top) {
		if (Dom.isIE()) { // Limitation in IE8...
			while (top > 1000000) {
				top -= 1000000;
			}
			while (top < -1000000) {
				top += 1000000;
			}
		}
		Dom.setStyleAttribute(element, "top", top + "px");
	}
1177782
public function setPosition($left, $top)
    {
        $params = [
            'x' => intval($left),
            'y' => intval($top)
        ];
        $command = $this->driver->factoryCommand(
            'window/' . $this->windowHandle . '/position',
            WebDriver_Command::METHOD_POST,
            $params
        );
        return $this->driver->curl($command)['value'];
    }
748565
public function setRequired($required)
    {
        $this->required = (boolean) $required;
        if ($this->isRequired()) {
            $this->setAttribute('required');
            return $this;
        }

        if ($this->getAttributes()->containsKey('required')) {
                $this->getAttributes()->remove('required');
        }
        return $this;
    }
705282
public function setTotal($total)
    {
        NumericValidator::validate($total, "Total");
        $total = Formatter::formatToPrice($total, $this->getCurrency());
        $this->total = $total;
        return $this;
    }
40306
public function setStopTimeout(int $stopTimeout)
    {
        $this->stopTimeout = $stopTimeout;

        $this->raw = array_merge($this->raw, ['StopTimeout' => $stopTimeout]);

        return $this;
    }
738121
public function setValue(?string $value) : Setting
    {

        if ($this->data['value'] !== $value) {
            $this->data['value'] = $value;
            $this->setModified('value');
        }

        return $this;
    }
1320212
public function top()
    {
        $objects = array_values($this->__data);

        $object = null;
        if (isset($objects[0])) {
            $object = $objects[0];
        }

        return $object;
    }
1345172
public function setLevel($level)
    {
        $this->level = $level;

        if (isset($this->nestedSetNode)) {
            $this->nestedSetNode->setLevel($level);
        }
        return $this;
    }
425736
public function setValue($value)
    {
        if ($value === Fallback::VALUE_TRUE) {
            $value = true;
        }

        if ($value === Fallback::VALUE_FALSE) {
            $value = false;
        }

        $this->value = $value;
        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;
    }
1201452
public function setInactive($name) {
		$element = $this->getElement($name);
		
		if ($element instanceof Element) {
			$element->setInactive();
		}
		
		return $this;
	}
844655
public function setTranslator(PHPTAL_TranslationService $t)
    {
        $this->_translator = $t;
        $t->setEncoding($this->getEncoding());
        return $this;
    }
1038733
public function top(): Item
    {
        if (!$this->isSorted) {
            usort($this->list, [$this, 'compare']);
            $this->isSorted = true;
        }
        $temp = $this->list;

        return end($temp);
    }
89165
public function set($number)
    {
        $this->setCurrentValue($number);
        $this->currentOperation = 'add';
        $this->addToHistory('set', $number);
        return $this;
    }