Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | function __construct($details) |
||
|
|||
30 | { |
||
31 | $this->name = (string)$details->groupName; |
||
32 | $this->url = (string)$details->groupUrl; |
||
33 | $this->headline = (string)$details->headline; |
||
34 | $this->summary = (string)$details->summary; |
||
35 | $this->avatarIcon = $this->getImageForAvatar((string)$details->avatarIcon); |
||
36 | $this->avatarMedium = $this->getImageForAvatar((string)$details->avatarMedium); |
||
37 | $this->avatarFull = $this->getImageForAvatar((string)$details->avatarFull); |
||
38 | $this->avatarIconUrl = (string)$details->avatarIcon; |
||
39 | $this->avatarMediumUrl = (string)$details->avatarMedium; |
||
40 | $this->avatarFullUrl = (string)$details->avatarFull; |
||
41 | } |
||
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.