@@ -15,6 +15,9 @@ class DetailedPackage extends Package
1515 * @param array<string, string> $requires
1616 * @param array<string, string> $devRequires
1717 * @param array<string, mixed> $extras
18+ * @param array<string, string> $suggests
19+ * @param array<string, string> $conflicts
20+ * @param array<string, string> $replaces
1821 */
1922 public function __construct (
2023 string $ namespace ,
@@ -30,6 +33,10 @@ public function __construct(
3033 protected array $ requires = [],
3134 protected array $ devRequires = [],
3235 protected array $ extras = [],
36+ protected array $ suggests = [],
37+ protected array $ conflicts = [],
38+ protected array $ replaces = [],
39+ protected string $ readme = '' ,
3340 ) {
3441 parent ::__construct ($ namespace , $ name , $ description );
3542 }
@@ -44,11 +51,17 @@ public function setType(string $type): void
4451 $ this ->type = $ type ;
4552 }
4653
54+ /**
55+ * @return array<int, string>
56+ */
4757 public function getKeywords (): array
4858 {
4959 return $ this ->keywords ;
5060 }
5161
62+ /**
63+ * @param array<int, string> $keywords
64+ */
5265 public function setKeywords (array $ keywords ): void
5366 {
5467 $ this ->keywords = $ keywords ;
@@ -64,71 +77,113 @@ public function setHomepage(string $homepage): void
6477 $ this ->homepage = $ homepage ;
6578 }
6679
80+ /**
81+ * @return array<int, array<string, string>>
82+ */
6783 public function getAuthors (): array
6884 {
6985 return $ this ->authors ;
7086 }
7187
88+ /**
89+ * @param array<int, array<string, string>> $authors
90+ */
7291 public function setAuthors (array $ authors ): void
7392 {
7493 $ this ->authors = $ authors ;
7594 }
7695
96+ /**
97+ * @return array<int, array<string, string>>
98+ */
7799 public function getLicenses (): array
78100 {
79101 return $ this ->licenses ;
80102 }
81103
104+ /**
105+ * @param array<int, array<string, string>> $licenses
106+ */
82107 public function setLicenses (array $ licenses ): void
83108 {
84109 $ this ->licenses = $ licenses ;
85110 }
86111
112+ /**
113+ * @return array<string, string>
114+ */
87115 public function getSupport (): array
88116 {
89117 return $ this ->support ;
90118 }
91119
120+ /**
121+ * @param array<string, string> $support
122+ */
92123 public function setSupport (array $ support ): void
93124 {
94125 $ this ->support = $ support ;
95126 }
96127
128+ /**
129+ * @return array<string, string>
130+ */
97131 public function getFunding (): array
98132 {
99133 return $ this ->funding ;
100134 }
101135
136+ /**
137+ * @param array<string, string> $funding
138+ */
102139 public function setFunding (array $ funding ): void
103140 {
104141 $ this ->funding = $ funding ;
105142 }
106143
144+ /**
145+ * @return array<string, string>
146+ */
107147 public function getRequires (): array
108148 {
109149 return $ this ->requires ;
110150 }
111151
152+ /**
153+ * @param array<string, string> $requires
154+ */
112155 public function setRequires (array $ requires ): void
113156 {
114157 $ this ->requires = $ requires ;
115158 }
116159
160+ /**
161+ * @return array<string, string>
162+ */
117163 public function getDevRequires (): array
118164 {
119165 return $ this ->devRequires ;
120166 }
121167
168+ /**
169+ * @param array<string, string> $devRequires
170+ */
122171 public function setDevRequires (array $ devRequires ): void
123172 {
124173 $ this ->devRequires = $ devRequires ;
125174 }
126175
176+ /**
177+ * @return array<string, mixed>
178+ */
127179 public function getExtras (): array
128180 {
129181 return $ this ->extras ;
130182 }
131183
184+ /**
185+ * @param array<string, mixed> $extras
186+ */
132187 public function setExtras (array $ extras ): void
133188 {
134189 $ this ->extras = $ extras ;
0 commit comments