Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Nelmio
Alice
Entity
StdClassFactory
PHP 클래스 Nelmio\Alice\Entity\StdClassFactory
파일 보기
프로젝트 열기: nelmio/alice
1 사용 예제들
공개 메소드들
메소드
설명
create
(
array
$attributes
= [] ) :
stdClass
Creates an stdClass instance with the given attributes. For example:
메소드 상세
create()
공개
정적인
메소드
$std = $factory->create(['foo' => 'bar', 'ping' => 'pong']); is equivalent to: $std = new \stdClass(); $std->foo = 'bar'; $std->ping = 'pong';
public
static
create
(
array
$attributes
= [] ) :
stdClass
$attributes
array
리턴
stdClass