ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 25 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 46 of file ClockFactoryImpl.php.

46 : ClockInterface
47 {
48 return new LocalClock($time_zone);
49 }

◆ system()

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

@inheritDoc

Implements ILIAS\Data\Clock\ClockFactory.

Definition at line 30 of file ClockFactoryImpl.php.

30 : ClockInterface
31 {
32 return new SystemClock();
33 }

◆ utc()

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

@inheritDoc

Implements ILIAS\Data\Clock\ClockFactory.

Definition at line 38 of file ClockFactoryImpl.php.

38 : ClockInterface
39 {
40 return new UtcClock();
41 }

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