mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Add Archive download to Api v2 orders
This commit is contained in:
@@ -20,6 +20,11 @@ class OrderView
|
||||
*/
|
||||
private $order;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $archiveUrl;
|
||||
|
||||
/**
|
||||
* @var OrderElementView[]
|
||||
*/
|
||||
@@ -43,6 +48,14 @@ class OrderView
|
||||
$this->viewElements = $viewElements instanceof \Traversable ? iterator_to_array($viewElements) : $viewElements;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $archiveUrl
|
||||
*/
|
||||
public function setArchiveUrl($archiveUrl)
|
||||
{
|
||||
$this->archiveUrl = (string)$archiveUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Order
|
||||
*/
|
||||
@@ -51,6 +64,14 @@ class OrderView
|
||||
return $this->order;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getArchiveUrl()
|
||||
{
|
||||
return $this->archiveUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OrderElementView[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user