Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit ca2e942

Browse files
authored
Merge pull request #160 from xemlock/add-interface-methods
Add missing methods to Package and Repository interfaces
2 parents b25c571 + acb3d1e commit ca2e942

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

src/Bowerphp/Package/Package.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public function getUniqueName()
100100
}
101101

102102
/**
103-
* Set the required packages
104-
*
105-
* @param array $requires A set of package links
103+
* {@inheritdoc}
106104
*/
107105
public function setRequires(array $requires = null)
108106
{
@@ -123,9 +121,7 @@ public function getRequires()
123121
}
124122

125123
/**
126-
* Set the info
127-
*
128-
* @param array $info
124+
* {@inheritdoc}
129125
*/
130126
public function setInfo(array $info)
131127
{

src/Bowerphp/Package/PackageInterface.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,27 @@ public function setRequiredVersion($version);
5252
*/
5353
public function getRequires();
5454

55+
/**
56+
* Set the required packages
57+
*
58+
* @param array $requires A set of package links
59+
*/
60+
public function setRequires(array $requires = null);
61+
5562
/**
5663
* Returns all package info (e.g. info from package's bower.json)
5764
*
5865
* @return array
5966
*/
6067
public function getInfo();
6168

69+
/**
70+
* Set package info
71+
*
72+
* @param array $info
73+
*/
74+
public function setInfo(array $info);
75+
6276
/**
6377
* Stores a reference to the repository that owns the package
6478
*

src/Bowerphp/Repository/GithubRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function setUrl($url, $raw = true)
4343
}
4444

4545
/**
46-
* @return string
46+
* {@inheritdoc}
4747
*/
4848
public function getUrl()
4949
{

src/Bowerphp/Repository/RepositoryInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ interface RepositoryInterface
1919
*/
2020
public function setUrl($url, $raw = true);
2121

22+
/**
23+
* @return string
24+
*/
25+
public function getUrl();
26+
2227
/**
2328
* @param Client $githubClient
2429
*/

0 commit comments

Comments
 (0)