PHP Trait Cake\Chronos\Traits\MagicPropertyTrait

Show file Open project: cakephp/chronos

Public Methods

Method Description
__get ( string $name ) : string | integer | DateTimeZone Get a part of the ChronosInterface object
__isset ( string $name ) : boolean Check if an attribute exists on the object

Method Details

__get() public method

Get a part of the ChronosInterface object
public __get ( string $name ) : string | integer | DateTimeZone
$name string The property name to read.
return string | integer | DateTimeZone The property value.

__isset() public method

Check if an attribute exists on the object
public __isset ( string $name ) : boolean
$name string The property name to check.
return boolean Whether or not the property exists.