lib/mail/Mail.php
public function addCc(
        $cc,
        $name = null,
        $personalizationIndex = null,
        $personalization = null
    ) {
        if ($cc instanceof Cc) {
            $name = $cc->getName();
            $cc = $cc->getEmailAddress();
        }
        $this->addRecipientEmail(
            "Cc",
            $cc,
            $name,
            $personalizationIndex,
            $personalization
        );
    }
public function addCc(
        $cc,
        $name = null,
        $personalizationIndex = null,
        $personalization = null
    ) {
        if ($cc instanceof Cc) {
            $name = $cc->getName();
            $cc = $cc->getEmailAddress();
        }
        $this->addRecipientEmail(
            "Cc",
            $cc,
            $name,
            $personalizationIndex,
            $personalization
        );
    }
public function addCc ( $ cc , $ name = null , $ personalizationIndex = null , $ personalization = null ) { if ( $ cc instanceof Cc ) { $ name = $ cc -> getName ( ) ; $ cc = $ cc -> getEmailAddress ( ) ; } $ this -> addRecipientEmail ( "Cc" , $ cc , $ name , $ personalizationIndex , $ personalization ) ; }
Adds an email cc recipient to a Personalization object

@param string|Cc $cc Email address or Cc object
@param string $name Recipient name
@param int|null $personalizationIndex Index into an array of
existing Personalization
objects
@param Personalization|null $personalization A pre-created
Personalization object
Adds an email cc recipient to a Personalization object