1 | <?php |
||
15 | class ContaPayLancamento implements \JsonSerializable |
||
16 | { |
||
17 | /** |
||
18 | * @var integer |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * ContaPayLancamento constructor. |
||
24 | */ |
||
25 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * @return int |
||
31 | */ |
||
32 | public function getId() |
||
36 | |||
37 | /** |
||
38 | * @param int $id |
||
39 | * @return ContaPayLancamento |
||
40 | */ |
||
41 | public function setId($id) |
||
46 | |||
47 | function jsonSerialize() |
||
53 | |||
54 | |||
55 | } |
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.