Skip to content

Commit

Permalink
Introduced get_gateway function by config post ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jun 5, 2019
1 parent c394f25 commit 047b1ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ public function get_config( $post_id ) {

return $config;
}

/**
* Get gateway.
*
* @param int $post_id Post ID.
* @return Gateway
*/
public function get_gateway( $post_id ) {
return new Gateway( $this->get_config( $post_id ) );
}
}

0 comments on commit 047b1ea

Please sign in to comment.