Ignore:
Timestamp:
Nov 24, 2020, 10:58:56 AM (3 years ago)
Author:
chronos
Message:
  • Modified: More static types added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Update.php

    r887 r888  
    1818  }
    1919
    20   function GetDbVersion()
     20  function GetDbVersion(): string
    2121  {
    2222    $DbResult = $this->Database->select($this->VersionTable, '*', 'Id=1');
     
    2525  }
    2626
    27   function IsInstalled()
     27  function IsInstalled(): bool
    2828  {
    2929    $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->VersionTable.'"');
     
    3131  }
    3232
    33   function IsUpToDate()
     33  function IsUpToDate(): bool
    3434  {
    3535    return $this->Revision <= $this->GetDbVersion();
    3636  }
    3737
    38   function Upgrade()
     38  function Upgrade(): string
    3939  {
    4040    $DbRevision = $this->GetDbVersion();
     
    5858  }
    5959
    60   function Install()
     60  function Install(): void
    6161  {
    6262    $InstallMethod = $this->InstallMethod;
     
    6464  }
    6565
    66   function Uninstall()
     66  function Uninstall(): void
    6767  {
    68 
    6968  }
    7069
    71   function InsertSampleData()
     70  function InsertSampleData(): void
    7271  {
    7372    $InstallMethod = $this->InsertSampleDataMethod;
Note: See TracChangeset for help on using the changeset viewer.