original_string: public static function factory($region, $profile, $configuration_set, $handler=null) {
          
          $config = [
              'region' => $region,
              'profile' => $profile, 
              'http' => [
                  'verify' => false//TODO: fix for production
              ],
          ];
          
          if (!is_null($configuration_set))
              $config['version'] = '2010-12-01';
          
          if (!is_null($handler))
              $config['handler'] = $handler;
          
          $client = SesClient::factory($config);
          
          return new AwsSesWrapper($client, $configuration_set);
      }
code: public static function factory($region, $profile, $configuration_set, $handler=null) {
          
          $config = [
              'region' => $region,
              'profile' => $profile, 
              'http' => [
                  'verify' => false//TODO: fix for production
              ],
          ];
          
          if (!is_null($configuration_set))
              $config['version'] = '2010-12-01';
          
          if (!is_null($handler))
              $config['handler'] = $handler;
          
          $client = SesClient::factory($config);
          
          return new AwsSesWrapper($client, $configuration_set);
      }
code_tokens: public static function factory ( $ region , $ profile , $ configuration_set , $ handler = null ) { $ config = [ 'region' => $ region , 'profile' => $ profile , 'http' => [ 'verify' => false //TODO: fix for production
   ] , ] ; if ( ! is_null ( $ configuration_set ) ) $ config [ 'version' ] = '2010-12-01' ; if ( ! is_null ( $ handler ) ) $ config [ 'handler' ] = $ handler ; $ client = SesClient :: factory ( $ config ) ; return new AwsSesWrapper ( $ client , $ configuration_set ) ; }
docstring: Utility method to instantiate a SES Client straight away
  
  @param string $region Set the correct endpoint region.
  http://docs.aws.amazon.com/general/latest/gr/rande.html#ses_region
  @param string $profile AWS IAM profile
  @param string $configuration_set Configuration Set on AWS SES (or null for v2 api)
  @param string $from Sender (optional)
  @param string $charset Charset (optional)
  @return a new AwsSesWrapper
docstring_tokens: Utility method to instantiate a SES Client straight away