|
|
@ -20,8 +20,8 @@ namespace Composer\Package;
|
|
|
|
class MemoryPackage extends BasePackage
|
|
|
|
class MemoryPackage extends BasePackage
|
|
|
|
{
|
|
|
|
{
|
|
|
|
protected $type;
|
|
|
|
protected $type;
|
|
|
|
protected $repositoryType;
|
|
|
|
protected $sourceType;
|
|
|
|
protected $repositoryUrl;
|
|
|
|
protected $sourceUrl;
|
|
|
|
protected $releaseType;
|
|
|
|
protected $releaseType;
|
|
|
|
protected $version;
|
|
|
|
protected $version;
|
|
|
|
protected $license;
|
|
|
|
protected $license;
|
|
|
@ -67,33 +67,33 @@ class MemoryPackage extends BasePackage
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param string $type
|
|
|
|
* @param string $type
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function setRepositoryType($type)
|
|
|
|
public function setSourceType($type)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->repositoryType = $type;
|
|
|
|
$this->sourceType = $type;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getRepositoryType()
|
|
|
|
public function getSourceType()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $this->repositoryType;
|
|
|
|
return $this->sourceType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param string $url
|
|
|
|
* @param string $url
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function setRepositoryUrl($url)
|
|
|
|
public function setSourceUrl($url)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->repositoryUrl = $url;
|
|
|
|
$this->sourceUrl = $url;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getRepositoryUrl()
|
|
|
|
public function getSourceUrl()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $this->repositoryUrl;
|
|
|
|
return $this->sourceUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|