Magician
in package
这是property包括它的变体[property-read | property-write]标签示例
Table of Contents
- $bar : string
- $foo : int
- $regular : mixed
- $_bar : mixed
- $_thingy : mixed
- __get() : mixed
- __set() : mixed
Properties
$bar write-only
public
string
$bar
声明只写
$foo read-only
public
int
$foo
声明只读
$regular
public
mixed
$regular
声明常规的读写属性
$_bar
private
mixed
$_bar
$_thingy
private
mixed
$_thingy
Methods
__get()
public
__get(mixed $var) : mixed
Parameters
- $var : mixed
Return values
mixed —__set()
public
__set(mixed $var, mixed $val) : mixed
Parameters
- $var : mixed
- $val : mixed