PHP Class Jyxo\Spl\Object

Author: Jaroslav HanslĂ­k
Inheritance: implements Jyxo\Spl\ArrayCopy
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
__get ( string $name ) : mixed Returns a property value if it has a getter defined.
__isset ( string $name ) : boolean Returns if property exists. Property exists if it has defined getter.
__set ( string $name, mixed $value ) Sets property value if it has a setter defined.
getClass ( ) : string Returns instance class name.
toArray ( ) : array Converts an object to an array

Private Methods

Method Description
hasMethod ( string $class, string $method ) : boolean Returns if a class has the given method defined.

Method Details

__get() public method

Returns a property value if it has a getter defined.
public __get ( string $name ) : mixed
$name string Property name
return mixed

__isset() public method

Returns if property exists. Property exists if it has defined getter.
public __isset ( string $name ) : boolean
$name string
return boolean

__set() public method

Sets property value if it has a setter defined.
public __set ( string $name, mixed $value )
$name string Propety name
$value mixed Property value

getClass() final public method

Returns instance class name.
final public getClass ( ) : string
return string

toArray() public method

Converts an object to an array
public toArray ( ) : array
return array