Skip to content

Commit

Permalink
Merge pull request #68 from alchemy-fr/feature/archive-url
Browse files Browse the repository at this point in the history
Add archive URL property to orders
  • Loading branch information
aztech-dev committed May 20, 2016
2 parents f869ef6 + 96c4581 commit 8eea69b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PhraseanetSDK/Orders/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,19 @@ public function getDeadline()
return $this->deadline ?: $this->deadline = new \DateTime($this->source->deadline);
}

/**
* @return OrderElement[]
*/
public function getElements()
{
return $this->elements ?: $this->elements = OrderElement::fromList($this->source->elements->data);
}

/**
* @return string|null
*/
public function getArchiveUrl()
{
return $this->source->archive_url;
}
}

0 comments on commit 8eea69b

Please sign in to comment.