addTag() public method

public addTag ( string $tag )
$tag string
Ejemplo n.º 1
0
 /**
  * Add Mailgun tags to the message.
  * Tag limit is 3.
  *
  * @param string|array $tags
  *
  * @return \Bogardo\Mailgun\Mail\Message
  */
 public function tag($tags)
 {
     $tags = array_slice((array) $tags, 0, 3);
     foreach ($tags as $tag) {
         $this->messageBuilder->addTag($tag);
     }
     return $this;
 }