| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 ) { |
|
| 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 ) { |
|
| 46 |
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..