ILIAS  release_8 Revision v8.24
ILIAS\Data\Clock\ClockFactoryImpl Class Reference
+ Inheritance diagram for ILIAS\Data\Clock\ClockFactoryImpl:
+ Collaboration diagram for ILIAS\Data\Clock\ClockFactoryImpl:

Public Member Functions

 system ()
 @inheritDoc More...
 
 utc ()
 @inheritDoc More...
 
 local (DateTimeZone $time_zone)
 @inheritDoc More...
 
 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)

@inheritDoc

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 ( )

@inheritDoc

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 ( )

@inheritDoc

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: