Failed Conditions
Push — develop ( cc7867...7a9398 )
by Remco
05:02
created

src/DataHelper.php (1 issue)

1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
4
5
/**
6
 * Title: Ingenico data helper class
7
 * Description:
8
 * Copyright: 2005-2019 Pronamic
9
 * Company: Pronamic
10
 *
11
 * @author  Remco Tolsma
12
 * @version 2.0.0
13
 * @since   1.1.0
14
 */
15
abstract class DataHelper {
16
	/**
17
	 * Data
18
	 *
19
	 * @var array
20
	 */
21
	protected $data;
22
23
	/**
24
	 * Constructs and initialize a Ogone data default helper class
25
	 *
26
	 * @param Data $data Data.
27
	 */
28 4
	public function __construct( Data $data ) {
29 4
		$this->data = $data;
0 ignored issues
show
Documentation Bug introduced by
It seems like $data of type Pronamic\WordPress\Pay\Gateways\Ingenico\Data is incompatible with the declared type array of property $data.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
30 4
	}
31
32
	/**
33
	 * Set field
34
	 *
35
	 * @param string $name  Name.
36
	 * @param string $value Value.
37
	 *
38
	 * @return mixed
39
	 */
40 4
	public function set_field( $name, $value ) {
41 4
		$this->data->set_field( $name, $value );
42
43 4
		return $this;
44
	}
45
}
46