| 1 | <?php |
||
| 9 | class ItemProduto implements \JsonSerializable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var integer |
||
| 13 | */ |
||
| 14 | private $id; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var integer |
||
| 18 | */ |
||
| 19 | private $itemProdutoId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $nome; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var integer |
||
| 28 | */ |
||
| 29 | private $quantidade; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var double |
||
| 33 | */ |
||
| 34 | private $valor; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * ItemProduto constructor. |
||
| 38 | */ |
||
| 39 | public function __construct() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getId() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param int $id |
||
| 53 | * @return ItemProduto |
||
| 54 | */ |
||
| 55 | public function setId($id) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return int |
||
| 63 | */ |
||
| 64 | public function getItemProdutoId() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param int $itemProdutoId |
||
| 71 | * @return ItemProduto |
||
| 72 | */ |
||
| 73 | public function setItemProdutoId($itemProdutoId) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getNome() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param string $nome |
||
| 89 | * @return ItemProduto |
||
| 90 | */ |
||
| 91 | public function setNome($nome) |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return int |
||
| 99 | */ |
||
| 100 | public function getQuantidade() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @param int $quantidade |
||
| 107 | * @return ItemProduto |
||
| 108 | */ |
||
| 109 | public function setQuantidade($quantidade) |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @return float |
||
| 117 | */ |
||
| 118 | public function getValor() |
||
| 122 | |||
| 123 | /** |
||
| 124 | * @param float $valor |
||
| 125 | * @return ItemProduto |
||
| 126 | */ |
||
| 127 | public function setValor($valor) |
||
| 132 | |||
| 133 | function jsonSerialize() |
||
| 143 | |||
| 144 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.