Example #1
0
 public function setTo($to)
 {
     if (!Validator::validateEmailUsingJakubVrana($to)) {
         throw new IllegalArgumentException('Neplatná E-mailová adresa.');
     }
     $this->to = $to;
     return $this;
 }