public function setAddress(Address $address) { $this->attributes['address'] = json_encode($address->snapshot()); }