Add Archive download to Api v2 orders

This commit is contained in:
Benoît Burnichon
2016-05-20 13:16:41 +02:00
parent db3bb2d4c4
commit 2547ef14fa
6 changed files with 120 additions and 8 deletions

View File

@@ -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[]
*/