Add a carbon copy to the message.

@param  string|array  $address
@param  string|null  $name
@param  bool  $override
@return $this
517269
public function cc($address, $name = null, $override = false)
    {
        if ($override) {
            $this->swift->setCc($address, $name);

            return $this;
        }

        return $this->addAddresses($address, $name, 'Cc');
    }
475602
public function from($address, $name = null)
    {
        $this->swift->setFrom($address, $name);

        return $this;
    }
1028282
protected function setFilename(&$name, $folder, $override = false)
    {
        $folder = trim($folder, '/');
        $extension = strrchr($name, '.');
        $len = mb_strlen($name) - mb_strlen($extension);
        $nameOrig = substr($name,0,$len);
        $num = 0;
        do {
            if (!$override && $num > 0) {
                $name = "{$nameOrig}-{$num}{$extension}";
            }
            $num++;

            $filename  = "/{$folder}/{$name}";
        } while ($this->storage->exists($filename));

        return $filename;
    }
878802
public function cc($addresses, $name = null) {
        $this->message->setCc($addresses, $name);
        return $this;
    }
1298463
public function setParameter(String $key, $value, Bool $override=false)
	{
		if ($this->getParameter($key)) {
			$defValue = $this->getParameter($key);
			$this->parameters[$key] = [$defValue];
			$this->parameters[$key][] = $value;
			return;
		}

		$this->parameters[$key] = $value;
	}
763036
protected function add(Permission $permission, $override = true)
    {
        if ($override || ! $this->permissions->containsKey($permission->getName()))
        {
            $this->permissions->set($permission->getName(), $permission);
        }
    }
35754
public function addMethod($name, $overrideOnDefined = false)
    {
        if ($this->methods->offsetExists($name) === true) {
            if ($overrideOnDefined === false) {
                throw Exception\ClassFile::methodAlreadyDefined($this->className, $name);
            }

            $this->methods->offsetUnset($name);
        }

        if (PHPUtils::isReservedAny($name) === true) {
            throw Exception\ClassFile::invalidMethodName($this->className, $name);
        }

        $method = new Element\Method($this, $name);
        $this->methods->offsetSet($name, $method);

        return $method;
    }
576850
public void add(Binding binding, boolean override) {
		final Set<Binding> moduleBindings = this.module.get().getBindings();
		final Binding otherBinding = findBinding(moduleBindings, binding);
		if (!override) {
			if (otherBinding != null) {
				throw new IllegalArgumentException(MessageFormat.format(
						"Forbidden override of {0} by {1}.", //$NON-NLS-1$
						otherBinding, binding));
			}
		} else if (otherBinding != null) {
			this.removableBindings.add(otherBinding);
		}
		if (!this.bindings.add(binding)) {
			throw new IllegalArgumentException(
					MessageFormat.format("Duplicate binding for {0} in {1}", binding.getKey(), this.name)); //$NON-NLS-1$
		}
	}
1367892
public function addFrom(string $address, ?string $name = null): Message
    {
        $this->from[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
901999
public function addBodyParam(string $name, $value, bool $overwrite = false)
    {
        $keyExists = array_key_exists($name, $this->body);
        # check if the key already exists
        if ($keyExists && !$overwrite) {
            return $this;
        }
        if (is_null($value)) {
            if ($keyExists) {
                unset($this->body[$name]);
            }
            return $this;
        }
        if (is_null($value)) {
            unset($this->query[$name]);
            return $this;
        }
        $this->body[$name] = $value;
        return $this;
    }
631868
protected static function modifyConfig($name, array $config, $override = false)
    {
        self::validateAgentName($name);
        if (!isset(self::$agentsConfig[$name])) {
            self::$agentsConfig[$name] = [];
        }
        $target = &self::$agentsConfig[$name];
        if ($override) {
            $target = $config;
        } else {
            $target = array_merge($target, $config);
        }
        if (self::hasAgent($name)) {
            self::getAgent($name)->config($target);
        }
    }
575808
public function bcc($address, $name = "", array $variables = [])
    {
        if (!empty($variables)) {
            $this->variables[$address] = $variables;
        }
        $this->messageBuilder->addBccRecipient($address, ['full_name' => $name]);

        return $this;
    }
178301
public function addReplyTo(string $address, ?string $name = null): Message
    {
        $this->replyTo[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
1144558
public function addCc($address, $name = null)
    {
        $current = $this->getCc();
        $current[$address] = $name;

        return $this->setCc($current);
    }
1229489
public function from($address, $name = null)
    {
        if (is_array($address)) {
            $this->addAddressArray($address, 'from');
        } else {
            $this->from[$address] = $name;
        }

        return $this;
    }
87908
public function setFrom($address, $name = null) : EmailInterface
    {
        // When using mail/sendmail, we need to set the PHPMailer "auto" flag to false
        // https://github.com/PHPMailer/PHPMailer/issues/1634
        $this->mailer->setFrom($address, $name, false);

        return $this;
    }
1068512
public function addCc($address, $name = null)
    {
        $address = $this->_addRecipient('Cc', $address, $name);
        $this->_recipients[$address->email()] = $address;
        return $this;
    }