Back to UpdateCoreCommand class

Method getUpdateModel

public mixed
getUpdateModel
()
Retrieves the Update model from com_joomlaupdate
Returns
  • mixed
Since
  • 4.0.0
-
  • \Exception

Method getUpdateModel - Source code

/**
 * Retrieves the Update model from com_joomlaupdate
 *
 * @return mixed
 *
 * @since 4.0.0
 *
 * @throws \Exception
 */
public function getUpdateModel()
{
    if (!isset($this->updateModel)) {
        $this->setUpdateModel();
    }
    return $this->updateModel;
}