Naguro_Text_Request_Factory

The WooCommerce Naguro Connect Naguro Text Request Factory class.

Defined (1)

The class is defined in the following location(s).

/includes/naguro/requests/factories/class-text-request-factory.php  
  1. class Naguro_Text_Request_Factory implements Naguro_Request_Factory { 
  2. public function get_request_by_method( $method ) { 
  3. if ( 'getimage' === $method ) { 
  4. return new Naguro_Text_Image_Get_Request( $_POST ); 
  5.  
  6. throw new Exception('Invalid method.');