Created __set_state() magic method