Sets labelId

@param int $labelId label_id integer

@return $this
359326
public function setLabelId($labelId)
    {

        if (!is_null($labelId) && ($labelId < 0)) {
            throw new \InvalidArgumentException('invalid value for $labelId when calling GetCharactersCharacterIdMailLabelsLabel., must be bigger than or equal to 0.');
        }

        $this->container['labelId'] = $labelId;

        return $this;
    }
84429
public function setIPId(int $nb_ip_id) : CNabuDataObject
    {
        if ($nb_ip_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_ip_id")
            );
        }
        $this->setValue('nb_ip_id', $nb_ip_id);
        
        return $this;
    }
36171
public function setId($id)
    {
        if (($content = $this->getContent()) instanceof FormInterface) {
            $content->setId($id);
        }

        return $this;
    }
77863
protected function saveLabel( $id, $label )
    {
        $locale = $this->getLocale();
        $sql    = $this->sql( $this->getTableInSchema(
            static::$labelTableName
        ) );

        $update = $sql->update()
                      ->set( array(
                          'label'   => $label,
                      ) )
                      ->where( array(
                          'menuId'  => $id,
                          'locale'  => $locale,
                      ) );

        $affected = $sql->prepareStatementForSqlObject( $update )
                        ->execute()
                        ->getAffectedRows();

        if ( $affected < 1 )
        {
            $insert = $sql->insert()
                          ->values( array(
                              'menuId'  => $id,
                              'locale'  => $locale,
                              'label'   => $label,
                          ) );

            $affected = $sql->prepareStatementForSqlObject( $insert )
                            ->execute()
                            ->getAffectedRows();
        }

        return $affected;
    }
161527
public function setId($id)
    {
        $this->getTabs()->each(function (TabInterface $tab) use ($id) {
            if ($tab instanceof FormInterface) {
                $tab->setId($id);
            }
        });

        return $this;
    }
1032796
public function setLabelOne($labels, $one)
    {
        $labels->singular_name = __($one);
        $labels->add_new = __('Add ' . $one);
        $labels->add_new_item = __('Add New ' . $one);
        $labels->edit_item = __('Edit ' . $one);
        $labels->new_item = __('New ' . $one);
        $labels->view_item = __('View ' . $one);
        $labels->parent_item_colon = __('Parent ' . $one . ':');
        $labels->archives = __($one . ' Archives');
        $labels->attributes = __($one . ' Attributes');
        $labels->insert_into_item = __('Insert into ' . strtolower($one));
        $labels->uploaded_to_this_item = __('Uploaded to this ' . strtolower($one));
        $labels->filter_items_list = __('Filter ' . strtolower($one) . ' list ');
        $labels->name_admin_bar = __($one);
        return $labels;
    }
662262
public function setLabel( $label ) {
		if ( $this->useInputTag ) {
			// Discard non-plaintext labels
			if ( !is_string( $label ) ) {
				$label = '';
			}

			$this->input->setValue( $label );
		}

		return $this->setLabelElementLabel( $label );
	}
961941
function setLabel($label)
    {
        // normalize header label
        $label = str_replace(' ', '-', ucwords(str_replace(['_', '-'], ' ', (string) $label)));

        if (! isValidLabel($label) )
            throw new \InvalidArgumentException(sprintf(
                'Invalid header name "%s".'
                , is_null($label) ? 'null' : $label
            ));


        $this->label = $label;
        return $this;
    }
154849
public function setLabels(array $labels): TaxonomyInterface
    {
        if (isset($this->args['labels'])) {
            $this->args['labels'] = array_merge($this->args['labels'], $labels);
        } else {
            $this->args['labels'] = $labels;
        }

        return $this;
    }
161232
def label_with_id(label_id, options = {})
      if options && options[:index] then
        label(:id => label_id.to_s, :index => options[:index]).text
      else
        label(:id, label_id.to_s).text
      end
    end
838561
public function setProductID($productID) {
        if (empty($productID))
            throw new Exception('Product ID must be set and cannot be empty.');

        $this->productID = trim($productID);

        return $this;
    }
1137522
public function setId($id = null)
    {
        if ($id == null) {
            $this->id = mt_rand(0, 255);
        } else {
            $this->id = (int)$id;
        }

        return $this;
    }
793457
public function setMenuId( $menuId )
    {
        $this->menuId = empty( $menuId ) ? null : (int) $menuId;

        if ( null !== $this->_menu &&
             $this->_menu->id != $this->menuId )
        {
            $this->_menu = null;
        }

        return $this;
    }
1184970
public function labelledByCallback(callable $labelCallback)
    {
        $this->updateOptions(function (ObjectIdentityOptions $options) use ($labelCallback) {
            return $options->withLabelCallback($labelCallback);
        });

        return $this;
    }
1040698
public static function init($id, $label = 'Index'){
		if( !isset(self::$instances[$id]) ){
			self::$instances[$id] = new Toc($label, '', true);
		}
		return self::$instances[$id];
	}
424449
public function setUserId(int $id)
    {

        // Has the id changed?
        if ($id !== $this->userId) {
            // Invalidate existing user
            if ($this->user !== null && $this->user->getId() !== $id) {
                $this->user = null;
            };

            $this->userId = $id;
        }

        return $this;
    }
209235
public function setId($id = null)
        {
            if (null !== $id && !is_string($id) && !is_numeric($id)) {
                throw new Exception(
                        'Invalid argument: $id must be a string, number or null');
            }

            $this->_id = null === $id ? $id : (string) $id;

            return $this;
        }