Update the names of the child fields when updating name of field.

@param string $name new name to give to the field.
@return $this
16768
public function setName($name)
    {
        $this->getPasswordField()->setName($name . '[_Password]');
        $this->getConfirmPasswordField()->setName($name . '[_ConfirmPassword]');
        if ($this->hiddenField) {
            $this->hiddenField->setName($name . '[_PasswordFieldVisible]');
        }

        parent::setName($name);
        return $this;
    }
1203912
final public function setName($name): Command
    {
        if (!$this->namespace) {
            parent::setName($name);
            return $this;
        }
        parent::setName(sprintf('%s:%s', $this->namespace, $name));
        return $this;
    }
1082690
public function set_response_name($name)
    {
        if (!empty($this->name)) {
            unset(self::$responses[$this->name]);
        }
        $this->name = $name;
        self::$responses[$this->name] = $this;

        return $this;
    }
49847
public function setName($name) {
    /** @var TokenNode $function_name */
    $function_name = $this->getName()->firstChild();
    $function_name->setText($name);
    return $this;
  }
593415
public function setName($name)
	{
		if ( ! is_string($name)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, name, to be a string"
			);	
		}
		
		if ( ! is_readable($name)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, name, to be a readable filename"
			);
		}
		
		$this->name = $name;
		
		return $this;
	}
453813
public function setName($name)
	{
		$this->_name = $name;
		$this->setPath('template', $this->_basePath . '/views/' . $this->getName() . '/tmpl');

		return $this;
	}
914799
public function addName(Name $name)
    {
        $names = array_map('strval', $this->names->toArray());
        if (!in_array($name->getName(), $names)) {
            $this->names->add($name);
            $name->setItem($this);
        }

        return $this;
    }
850796
public function setName($name)
    {
        $this->name = $name;
        if ($this->node) {
            $this->node->name = $name;
        }
    }
483965
public function setName($name)
    {
        if (is_scalar($name) || method_exists($name, '__toString')) {
            $this->name = (string) $name;
        } else {
            throw new InvalidArgumentException('The name must be a string.');
        }

        if ($this->name === '') {
            $this->name = 'Error';
        }

        return $this;
    }
312347
public function setNamePrefix($name)
    {
        $this->_namePrefix = $name;
        if ($this->getFilterField()) $this->getFilterField()->setNamePrefix($name);
        if ($this->getFilteredField()) $this->getFilteredField()->setNamePrefix($name);
        return $this;
    }
375788
public function setName($name)
    {
        if (strlen($name) == 0) {
            throw new \InvalidArgumentException(sprintf('TextInput name should not be empty'));
        }

        $this->name = $name;

        return $this;
    }
791015
public function setName( $name )
   {

      if ( $this->_name === $name ) { return $this; }

      $this->_name = $name;

      $this->notify( [ 'property' => 'name' ] );

      return $this;

   }
290037
public function setName($name)
    {
        // Set name in payload
        $payload = $this->getPayload();
        $payload['name'] = $name;

        return $this->setPayload($payload);
    }
327343
public function setName($name)
    {
        $index_prefix = Config::get('larasearch.elasticsearch.index_prefix', '');
        if ($index_prefix && !Str::startsWith($name, $index_prefix)) $name = $index_prefix . $name;

        $this->name = $name;

        return $this;
    }
256237
public function updateTeamName($name)
    {
        $response = $this->rest->post(
            static::TEAM_PATH,
            array(
                'name' => $name
            )
        );

        $this->checkResponse($response);

        return new Team($response);
    }
394370
public function setName($name)
    {
        $attrName = $this->isMultiple()
            ? "{$name}[]"
            : $name;
        $this->setAttribute('name', $attrName);
        $this->name = $name;
        if ($label = $this->getLabel()) {
            $this->getLabel()->setAttribute('for', $this->generateId());
        }
        return $this;
    }
730076
public function setName($name)
    {
        if (empty($name))
            throw new \Exception('Invalid characters in database name:'.$name);
        $this->name = $name;
        return $this;
    }