Gush\Adapter\Adapter::createReleaseAssets PHP Method

createReleaseAssets() public method

An asset can be eg documentation or a full download (library package with vendors). Not every Hub provider supports this however, so implementation is optional.
public createReleaseAssets ( integer $id, string $name, string $contentType, string $content ) : integer
$id integer Id of the release (must exist)
$name string Name of the asset (including file extension)
$contentType string Mime-type of the asset
$content string Actual asset (in raw-binary form without conversion)
return integer returns the id of the asset
    public function createReleaseAssets($id, $name, $contentType, $content);