addCampaignId() public méthode

public addCampaignId ( string | integer $campaignId ) : string | integer
$campaignId string | integer
Résultat string | integer
Exemple #1
0
 /**
  * Add Mailgun campaign ID(s) to the message
  * Campaign ID limit is 3.
  *
  * @param int|string|array $campaigns
  *
  * @return \Bogardo\Mailgun\Mail\Message
  */
 public function campaign($campaigns)
 {
     $campaigns = array_slice((array) $campaigns, 0, 3);
     foreach ($campaigns as $campaign) {
         $this->messageBuilder->addCampaignId($campaign);
     }
     return $this;
 }