1 | <?php |
||
7 | class Details extends BaseContainer |
||
8 | { |
||
9 | public $name; |
||
10 | |||
11 | public $url; |
||
12 | |||
13 | public $headline; |
||
14 | |||
15 | public $summary; |
||
16 | |||
17 | public $avatarIcon; |
||
18 | |||
19 | public $avatarMedium; |
||
20 | |||
21 | public $avatarFull; |
||
22 | |||
23 | public $avatarIconUrl; |
||
24 | |||
25 | public $avatarMediumUrl; |
||
26 | |||
27 | public $avatarFullUrl; |
||
28 | |||
29 | function __construct($details) |
||
42 | } |
||
43 |
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.