wp-pay-gateways /
ogone
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\Ingenico\DirectLink; |
||
| 4 | |||
| 5 | use Pronamic\WordPress\Pay\Gateways\Ingenico\Data; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Title: Ingenico DirectLink data helper |
||
| 9 | * Description: |
||
| 10 | * Copyright: 2005-2021 Pronamic |
||
| 11 | * Company: Pronamic |
||
| 12 | * |
||
| 13 | * @author Remco Tolsma |
||
| 14 | * @version 2.0.0 |
||
| 15 | * @since 1.0.0 |
||
| 16 | */ |
||
| 17 | class DataHelper { |
||
| 18 | /** |
||
| 19 | * Data |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | private $data; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructs and initialize a Ogone data default helper class |
||
| 27 | * |
||
| 28 | * @param Data $data Data. |
||
| 29 | */ |
||
| 30 | public function __construct( Data $data ) { |
||
| 31 | $this->data = $data; |
||
|
0 ignored issues
–
show
|
|||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set user id |
||
| 36 | * |
||
| 37 | * @param string $user_id User ID. |
||
| 38 | * |
||
| 39 | * @return DataHelper |
||
| 40 | */ |
||
| 41 | public function set_user_id( $user_id ) { |
||
| 42 | $this->data->set_field( 'USERID', $user_id ); |
||
| 43 | |||
| 44 | return $this; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Set password |
||
| 49 | * |
||
| 50 | * @param string $password Password. |
||
| 51 | * |
||
| 52 | * @return DataHelper |
||
| 53 | */ |
||
| 54 | public function set_password( $password ) { |
||
| 55 | $this->data->set_field( 'PSWD', $password ); |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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..