1 | <?php |
||
16 | class UserAddress extends \SimpleORM\AbstractEntity { |
||
17 | |||
18 | protected $code; |
||
19 | |||
20 | protected $street; |
||
21 | |||
22 | protected $city; |
||
23 | |||
24 | function __construct(\Test\Domain\City\City $City,$code,$street) { |
||
29 | |||
30 | function getCode() { |
||
33 | |||
34 | function getStreet() { |
||
37 | |||
38 | function getCity() { |
||
41 | |||
42 | function setCode($code) { |
||
45 | |||
46 | function setStreet($street) { |
||
49 | |||
50 | function setCity(\Test\Domain\City\City $city) { |
||
53 | |||
54 | |||
55 | } |
||
56 |
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.