MagicPropertyTrait
Provides the magic methods that allow read access to magic properties.
Table of Contents
Properties
- $age : int
- $day : int
- $dayOfWeek : int
- $dayOfWeekName : string
- $dayOfYear : int
- $daysInMonth : int
- $dst : bool
- $hour : int
- $local : bool
- $micro : int
- $minute : int
- $month : int
- $offset : int
- $offsetHours : int
- $quarter : int
- $second : int
- $timestamp : int
- $timezone : DateTimeZone
- $timezoneName : string
- $tz : DateTimeZone
- $tzName : string
- $utc : bool
- $weekOfMonth : int
- $weekOfYear : int
- $year : int
- $yearIso : int
Methods
- __get() : string|int|bool|DateTimeZone
- Get a part of the ChronosInterface object
- __isset() : bool
- Check if an attribute exists on the object
Properties
$age
public
int
$age
$day
public
int
$day
$dayOfWeek
public
int
$dayOfWeek
$dayOfWeekName
public
string
$dayOfWeekName
$dayOfYear
public
int
$dayOfYear
$daysInMonth
public
int
$daysInMonth
$dst
public
bool
$dst
$hour
public
int
$hour
$local
public
bool
$local
$micro
public
int
$micro
$minute
public
int
$minute
$month
public
int
$month
$offset
public
int
$offset
$offsetHours
public
int
$offsetHours
$quarter
public
int
$quarter
$second
public
int
$second
$timestamp
public
int
$timestamp
$timezone
public
DateTimeZone
$timezone
$timezoneName
public
string
$timezoneName
$tz
public
DateTimeZone
$tz
$tzName
public
string
$tzName
$utc
public
bool
$utc
$weekOfMonth
public
int
$weekOfMonth
$weekOfYear
public
int
$weekOfYear
$year
public
int
$year
$yearIso
public
int
$yearIso
Methods
__get()
Get a part of the ChronosInterface object
public
__get(string $name) : string|int|bool|DateTimeZone
Parameters
- $name : string
-
The property name to read.
Tags
Return values
string|int|bool|DateTimeZone —The property value.
__isset()
Check if an attribute exists on the object
public
__isset(string $name) : bool
Parameters
- $name : string
-
The property name to check.
Return values
bool —Whether or not the property exists.