original_string: public function setFrom($email, $name = null)
      {
          if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
              throw new \Parable\Mail\Exception("Email provided is invalid: {$email}");
          }
          $this->addresses['from'] = [
              [
                  'email' => $email,
                  'name'  => $name,
              ]
          ];
          return $this;
      }
code: public function setFrom($email, $name = null)
      {
          if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
              throw new \Parable\Mail\Exception("Email provided is invalid: {$email}");
          }
          $this->addresses['from'] = [
              [
                  'email' => $email,
                  'name'  => $name,
              ]
          ];
          return $this;
      }
code_tokens: public function setFrom ( $ email , $ name = null ) { if ( ! filter_var ( $ email , FILTER_VALIDATE_EMAIL ) ) { throw new \ Parable \ Mail \ Exception ( "Email provided is invalid: {$email}" ) ; } $ this -> addresses [ 'from' ] = [ [ 'email' => $ email , 'name' => $ name , ] ] ; return $ this ; }
docstring: Set the from address.
  
  @param string      $email
  @param null|string $name
  
  @return $this
  @throws \Parable\Mail\Exception
docstring_tokens: Set the from address .