-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from discovery-tecnologia/develop
Ajustar o mapeamento de Feedback para retornar os objetos Sale e Purchase
- Loading branch information
Showing
3 changed files
with
276 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?php | ||
/** | ||
* Class Purchase | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Resources\Feedback; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class Purchase | ||
{ | ||
/** | ||
* @var integer | ||
* @JMS\Type("integer") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var \DateTime | ||
* @JMS\Type("DateTime<'Y-m-d\TH:i:s.000-04:00'>") | ||
*/ | ||
private $dateCreated; | ||
|
||
/** | ||
* @var boolean | ||
* @JMS\Type("boolean") | ||
*/ | ||
private $fulfilled; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $rating; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $status; | ||
|
||
/** | ||
* @return integer | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param integer $id | ||
* @return Purchase | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return \DateTime | ||
*/ | ||
public function getDateCreated() | ||
{ | ||
return $this->dateCreated; | ||
} | ||
|
||
/** | ||
* @param \DateTime $dateCreated | ||
* @return Purchase | ||
*/ | ||
public function setDateCreated($dateCreated) | ||
{ | ||
$this->dateCreated = $dateCreated; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return boolean | ||
*/ | ||
public function isFulfilled() | ||
{ | ||
return $this->fulfilled; | ||
} | ||
|
||
/** | ||
* @param boolean $value | ||
* @return Purchase | ||
*/ | ||
public function setFulfilled($value) | ||
{ | ||
$this->fulfilled = $value; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRating() | ||
{ | ||
return $this->rating; | ||
} | ||
|
||
/** | ||
* @param string $rating | ||
* @return Purchase | ||
*/ | ||
public function setRating($rating) | ||
{ | ||
$this->rating = $rating; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @param string $status | ||
* @return Purchase | ||
*/ | ||
public function setStatus($status) | ||
{ | ||
$this->status = $status; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?php | ||
/** | ||
* Class Sale | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Resources\Feedback; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class Sale | ||
{ | ||
/** | ||
* @var integer | ||
* @JMS\Type("integer") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var \DateTime | ||
* @JMS\Type("DateTime<'Y-m-d\TH:i:s.000-04:00'>") | ||
*/ | ||
private $dateCreated; | ||
|
||
/** | ||
* @var boolean | ||
* @JMS\Type("boolean") | ||
*/ | ||
private $fulfilled; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $rating; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $status; | ||
|
||
/** | ||
* @return integer | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param integer $id | ||
* @return Sale | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return \DateTime | ||
*/ | ||
public function getDateCreated() | ||
{ | ||
return $this->dateCreated; | ||
} | ||
|
||
/** | ||
* @param \DateTime $dateCreated | ||
* @return Sale | ||
*/ | ||
public function setDateCreated($dateCreated) | ||
{ | ||
$this->dateCreated = $dateCreated; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return boolean | ||
*/ | ||
public function isFulfilled() | ||
{ | ||
return $this->fulfilled; | ||
} | ||
|
||
/** | ||
* @param boolean $value | ||
* @return Sale | ||
*/ | ||
public function setFulfilled($value) | ||
{ | ||
$this->fulfilled = $value; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRating() | ||
{ | ||
return $this->rating; | ||
} | ||
|
||
/** | ||
* @param string $rating | ||
* @return Sale | ||
*/ | ||
public function setRating($rating) | ||
{ | ||
$this->rating = $rating; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @param string $status | ||
* @return Sale | ||
*/ | ||
public function setStatus($status) | ||
{ | ||
$this->status = $status; | ||
return $this; | ||
} | ||
} |