Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Nelmio
Alice
Entity
StdClassFactory
PHP Class Nelmio\Alice\Entity\StdClassFactory
Afficher le fichier
Open project: nelmio/alice
Class Usage Examples
Méthodes publiques
Méthode
Description
create
(
array
$attributes
= [] ) :
stdClass
Creates an stdClass instance with the given attributes. For example:
Method Details
create()
public
static
méthode
$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
Résultat
stdClass