Test Failed
Push — master ( e1fb16...2c0485 )
by Reüel
04:54
created

src/ConfigFactory.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Icepay;
4
5
use Pronamic\WordPress\Pay\Core\GatewayConfigFactory;
6
7
/**
8
 * Title: ICEPAY config factory
9
 * Description:
10
 * Copyright: 2005-2019 Pronamic
11
 * Company: Pronamic
12
 *
13
 * @author Remco Tolsma
14
 * @version 2.0.0
15
 * @since 1.0.0
16
 */
17
class ConfigFactory extends GatewayConfigFactory {
18
	public function get_config( $post_id ) {
19
		$config = new Config();
20
21
		$config->merchant_id = get_post_meta( $post_id, '_pronamic_gateway_icepay_merchant_id', true );
0 ignored issues
show
The function get_post_meta was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
		$config->merchant_id = /** @scrutinizer ignore-call */ get_post_meta( $post_id, '_pronamic_gateway_icepay_merchant_id', true );
Loading history...
22
		$config->secret_code = get_post_meta( $post_id, '_pronamic_gateway_icepay_secret_code', true );
23
		$config->order_id    = get_post_meta( $post_id, '_pronamic_gateway_icepay_order_id', true );
24
25
		return $config;
26
	}
27
}
28