state = isset($state) ? $state : $this->loadState(); } /** * Get the model state. * * @return JRegistry The state object. * * @since 12.1 */ public function getState() { return $this->state; } /** * Set the model state. * * @param JRegistry $state The state object. * * @return void * * @since 12.1 */ public function setState(JRegistry $state) { $this->state = $state; } /** * Load the model state. * * @return JRegistry The state object. * * @since 12.1 */ protected function loadState() { return new JRegistry; } }