PHP Класс business\TimeInterval

Автор: Florian Voutzinos ([email protected])
Наследование: implements JsonSerializable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Time $start, Time $end ) Creates a time interval.
contains ( Time $time ) : boolean Checks if the interval contains the given time.
fromString ( string $startTime, string $endTime ) : TimeInterval Creates a new interval from time strings.
getEnd ( ) : Time Gets the end time.
getStart ( ) : Time Gets the start time.
jsonSerialize ( )

Описание методов

__construct() публичный Метод

Creates a time interval.
public __construct ( Time $start, Time $end )
$start Time
$end Time

contains() публичный Метод

Checks if the interval contains the given time.
public contains ( Time $time ) : boolean
$time Time
Результат boolean

fromString() публичный статический Метод

Creates a new interval from time strings.
public static fromString ( string $startTime, string $endTime ) : TimeInterval
$startTime string The start time
$endTime string The end time
Результат TimeInterval

getEnd() публичный Метод

Gets the end time.
public getEnd ( ) : Time
Результат Time

getStart() публичный Метод

Gets the start time.
public getStart ( ) : Time
Результат Time

jsonSerialize() публичный Метод

public jsonSerialize ( )