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