Skip to content

Commit f8edf32

Browse files
committed
Merge pull request #5 from chillu/pulls/more-package-data
Expose more package data in Result\Package
2 parents 105f199 + 8e6e788 commit f8edf32

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

src/Packagist/Api/Result/Package/Dist.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,27 @@
55
class Dist extends Source
66
{
77
protected $shasum;
8+
protected $type;
9+
protected $url;
10+
protected $reference;
811

912
public function getShasum()
1013
{
1114
return $this->shasum;
1215
}
16+
17+
public function getType()
18+
{
19+
return $this->type;
20+
}
21+
22+
public function getUrl()
23+
{
24+
return $this->url;
25+
}
26+
27+
public function getReference()
28+
{
29+
return $this->reference;
30+
}
1331
}

src/Packagist/Api/Result/Package/Version.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class Version extends AbstractResult
2121
protected $extra;
2222
protected $require;
2323
protected $requireDev;
24+
protected $conflict;
25+
protected $provide;
26+
protected $replace;
2427
protected $bin;
2528

2629
public function getName()
@@ -103,6 +106,21 @@ public function getRequireDev()
103106
return $this->requireDev;
104107
}
105108

109+
public function getConflict()
110+
{
111+
return $this->conflict;
112+
}
113+
114+
public function getProvide()
115+
{
116+
return $this->provide;
117+
}
118+
119+
public function getReplace()
120+
{
121+
return $this->replace;
122+
}
123+
106124
public function getBin()
107125
{
108126
return $this->bin;

0 commit comments

Comments
 (0)