Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Amp
Struct
PHP Trait Amp\Struct
This trait is intended to make using public properties a little safer by throwing when nonexistent property names are read or written.
显示文件
Open project: amphp/amp
Public Methods
Method
Description
__get
(
string
$property
)
__set
(
string
$property
,
$value
)
Private Methods
Method
Description
generateStructPropertyError
(
string
$property
) :
string
suggestPropertyName
(
string
$badProperty
) :
string
Method Details
__get()
public
method
public
__get
(
string
$property
)
$property
string
__set()
public
method
public
__set
(
string
$property
,
$value
)
$property
string