Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/WebCam/WebCam.php

    r887 r899  
    4848}
    4949
    50 class ModuleWebCam extends AppModule
     50class ModuleWebCam extends Module
    5151{
    5252  public string $ImageFileName = 'webcam.jpg';
     
    5858    $this->Version = '1.0';
    5959    $this->Creator = 'Chronos';
    60     $this->License = 'GNU/GPL';
     60    $this->License = 'GNU/GPLv3';
    6161    $this->Description = 'Web camera image presentetation';
    62     $this->Dependencies = array();
    63     $this->SupportedModels = array();
    6462  }
    6563
     
    8179  }
    8280
    83   static function Cast(AppModule $AppModule): ModuleWebCam
     81  static function Cast(Module $Module): ModuleWebCam
    8482  {
    85     if ($AppModule instanceof ModuleWebCam)
     83    if ($Module instanceof ModuleWebCam)
    8684    {
    87       return $AppModule;
     85      return $Module;
    8886    }
    89     throw new Exception('Expected ModuleWebCam type but got '.gettype($AppModule));
     87    throw new Exception('Expected ModuleWebCam type but got '.gettype($Module));
    9088  }
    9189}
Note: See TracChangeset for help on using the changeset viewer.