 wp-pay-gateways    /
                    ideal-advanced-v3
                      wp-pay-gateways    /
                    ideal-advanced-v3
                
                            | 1 | <?php | ||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3; | ||
| 4 | |||
| 5 | use Pronamic\WordPress\DateTime\DateTime; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Title: Directory | ||
| 9 | * Description: | ||
| 10 | * Copyright: 2005-2019 Pronamic | ||
| 11 | * Company: Pronamic | ||
| 12 | * | ||
| 13 | * @author Remco Tolsma | ||
| 14 | * @version 2.0.0 | ||
| 15 | */ | ||
| 16 | class Directory { | ||
| 17 | /** | ||
| 18 | * The date the issuer list was modified | ||
| 19 | * | ||
| 20 | * @var string | ||
| 21 | */ | ||
| 22 | private $date; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * The countries in this directory | ||
| 26 | * | ||
| 27 | * @var array | ||
| 28 | */ | ||
| 29 | private $countries; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Constructs and initializes an directory | ||
| 33 | */ | ||
| 34 | 	public function __construct() { | ||
| 35 | $this->countries = array(); | ||
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Set the specified date | ||
| 40 | * | ||
| 41 | * @param DateTime $date | ||
| 42 | */ | ||
| 43 | 	public function set_date( DateTime $date ) { | ||
| 44 | $this->date = $date; | ||
| 0 ignored issues–
                            show | |||
| 45 | } | ||
| 46 | |||
| 47 | /** | ||
| 48 | * Add the specified country to this directory | ||
| 49 | * | ||
| 50 | * @param Country $country | ||
| 51 | */ | ||
| 52 | 	public function add_country( Country $country ) { | ||
| 53 | $this->countries[] = $country; | ||
| 54 | } | ||
| 55 | |||
| 56 | /** | ||
| 57 | * Get the countries within this directory | ||
| 58 | * | ||
| 59 | * @return array | ||
| 60 | */ | ||
| 61 | 	public function get_countries() { | ||
| 62 | return $this->countries; | ||
| 63 | } | ||
| 64 | } | ||
| 65 | 
 
                                
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..