| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function get_config( $post_id ) { |
||
| 30 | $config = new Config(); |
||
| 31 | |||
| 32 | $config->post_id = intval( $post_id ); |
||
|
|
|||
| 33 | $config->mode = $this->get_meta( $post_id, 'mode' ); |
||
| 34 | $config->refresh_token = $this->get_meta( $post_id, 'omnikassa_2_refresh_token' ); |
||
| 35 | $config->signing_key = $this->get_meta( $post_id, 'omnikassa_2_signing_key' ); |
||
| 36 | $config->access_token = $this->get_meta( $post_id, 'omnikassa_2_access_token' ); |
||
| 37 | $config->access_token_valid_until = $this->get_meta( $post_id, 'omnikassa_2_access_token_valid_until' ); |
||
| 38 | $config->order_id = $this->get_meta( $post_id, 'omnikassa_2_order_id' ); |
||
| 39 | |||
| 40 | return $config; |
||
| 41 | } |
||
| 43 |