Sets the name for this association, usually the alias
assigned to the target associated table

@param string $name Name to be assigned
@return $this
321021
public function setName($name)
    {
        if ($this->_targetTable !== null) {
            $alias = $this->_targetTable->getAlias();
            if ($alias !== $name) {
                throw new InvalidArgumentException('Association name does not match target table alias.');
            }
        }

        $this->_name = $name;

        return $this;
    }
751602
public function setName(string $name) : Application
    {
        $service = $this->getService();
        $service->setName($name);
        $this->name = $service->getName();
        return $this;
    }
91002
public function set_name( $name )
    {
        foreach($this->components as $c)
        {
            $c->name_template = str_replace('{{parent_name}}', $this->get_name(), $c->composite_name_template);
        }
    }
632427
public function setName($name)
    {
        if (!empty($name) && ctype_print($name)) {
            $this->name = trim($name);
        }

        return $this;
    }
788080
public function setFamilyName($name)
    {
        $this->set('familyName', $name);
        $this->set('name', $this->givenName.' '.$this->familyName);

        return $this;
    }
1237098
public function setName(string $name): self
    {
        @trigger_error('Using Type::setName() is deprecated. Please use name property directly.', E_USER_DEPRECATED);

        $this->name = $name;
        $this->metadata = null;

        return $this;
    }
510308
public function setName($name)
    {
        $this->name = $name;
        if (isset($_FILES) && array_key_exists($name, $_FILES)) {
            $this->setValue($_FILES[$name]);
        }
        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;
    }
678675
public function setAlias($name) {
    $fc = mb_substr($name,0,1);
    if (!$fc === mb_strtoupper($fc)) {
      throw new \InvalidArgumentException('SetAlias braucht als Parameter den Alias als wäre er ein großgeschriebener KlassenName. '.Code::varInfo($name));
    }
    
    $this->alias = $name;
    return $this;
  }
835303
public function setName($name)
	{
		// Check if we need to make this an array
		$endsWithBrackets = substr_compare($name, '[]', -2, 2) === 0;
		if ($this->isAutoArray() && ! $endsWithBrackets)
		{
			$name .= '[]';
		}

		$this->itSetName($name);

		// For any children, update the name
		foreach ($this->getContents() as $item)
		{
			$item->setName($this->getName());
		}

		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;
    }
1240107
public function setName($name)
    {
        $xName = explode(' ', $name);
        $firstName = $xName[ 0 ];

        array_shift($xName);

        $lastName = implode(' ', $xName);

        $this->setObject('first_name', $firstName);
        $this->setObject('last_name', $lastName);

        return $this;
    }
720696
public function setName($name)
    {
        if (false !== stripos($name, '.')) {
            $relations = explode('.', $name);
            $name = array_pop($relations);
            $this->relation = implode('.', $relations);
        }

        $this->name = $name;

        return $this;
    }
1052163
public function setObjectName($name)
    {
        if (!is_null($name)) {
            $name = (string) $name;
        }

        $this->objectName = $name;
        return $this;
    }
1197707
protected function setPropertyName($name) {
        if(!empty($name)) {
            $name = $this->getDriverEscaper()->escape($name);
            $name = $this->getDriverEscaper()->quote($name);
            return $this->getDriverEscaper()->reserved('predicate') . ' = ' . $name . ' ' 
                    . $this->getDriverEscaper()->dbCommand('AND') . ' ( ';
        }
        return '';
    }
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;
  }