ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Data\Clock\ClockFactoryImpl Class Reference
+ Inheritance diagram for ILIAS\Data\Clock\ClockFactoryImpl:
+ Collaboration diagram for ILIAS\Data\Clock\ClockFactoryImpl:

Public Member Functions

 system ()
 
 utc ()
 
 local (DateTimeZone $time_zone)
 

Detailed Description

Definition at line 23 of file ClockFactoryImpl.php.

Member Function Documentation

◆ local()

ILIAS\Data\Clock\ClockFactoryImpl::local ( DateTimeZone  $time_zone)

Implements ILIAS\Data\Clock\ClockFactory.

Definition at line 44 of file ClockFactoryImpl.php.

44  : ClockInterface
45  {
46  return new LocalClock($time_zone);
47  }

◆ system()

ILIAS\Data\Clock\ClockFactoryImpl::system ( )

Implements ILIAS\Data\Clock\ClockFactory.

Definition at line 28 of file ClockFactoryImpl.php.

28  : ClockInterface
29  {
30  return new SystemClock();
31  }

◆ utc()

ILIAS\Data\Clock\ClockFactoryImpl::utc ( )

Implements ILIAS\Data\Clock\ClockFactory.

Definition at line 36 of file ClockFactoryImpl.php.

36  : ClockInterface
37  {
38  return new UtcClock();
39  }

The documentation for this class was generated from the following file: