- All Implemented Interfaces:
Packages
PHP Composer packages registry built from JSON.
- Since:
- 0.1
-
Constructor Summary
Constructors
-
Method Summary
Reads packages registry binary content.
Saves packages registry binary content to storage.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JsonPackages
public JsonPackages()
Ctor.
-
JsonPackages
public JsonPackages(Content source)
Ctor.
- Parameters:
source
- Packages registry content.
-
Method Details
-
add
Description copied from interface: Packages
Add package.
- Specified by:
add
in interface Packages
- Parameters:
pack
- Package.
vers
- Version in case of absence version in package. If package does not
contain version, this value should be passed as a parameter.
- Returns:
- Updated packages.
-
save
Description copied from interface: Packages
Saves packages registry binary content to storage.
- Specified by:
save
in interface Packages
- Parameters:
storage
- Storage to use for saving.
key
- Key to store packages.
- Returns:
- Completion of saving.
-
content
Description copied from interface: Packages
Reads packages registry binary content.
- Specified by:
content
in interface Packages
- Returns:
- Content.