public function __construct($address, \stdClass $dataFromService) { $this->address = $address; $this->populateDetail($dataFromService); }