addCampaignId() 공개 메소드

public addCampaignId ( string | integer $campaignId ) : string | integer
$campaignId string | integer
리턴 string | integer
예제 #1
0
파일: Message.php 프로젝트: bogardo/mailgun
 /**
  * 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;
 }