Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
24 | class Directory { |
||
25 | /** |
||
26 | * The date the issuer list was modified |
||
27 | * |
||
28 | * @var DateTime |
||
29 | */ |
||
30 | private $date; |
||
31 | |||
32 | /** |
||
33 | * The countries in this directory |
||
34 | * |
||
35 | * @var array<int, Country> |
||
36 | */ |
||
37 | private $countries; |
||
38 | |||
39 | /** |
||
40 | * Constructs and initializes a directory |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function __construct() { |
||
45 | $this->countries = array(); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Set the specified date |
||
50 | * |
||
51 | * @param DateTime $date Date. |
||
52 | * @return void |
||
53 | */ |
||
54 | public function set_date( DateTime $date ) { |
||
55 | $this->date = $date; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Add the specified country to this directory |
||
60 | * |
||
61 | * @param Country $country Country. |
||
62 | * @return void |
||
63 | */ |
||
64 | public function add_country( Country $country ) { |
||
65 | $this->countries[] = $country; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * Get the countries within this directory |
||
70 | * |
||
71 | * @return array<int, Country> |
||
72 | */ |
||
73 | public function get_countries() { |
||
75 | } |
||
76 | } |
||
77 |