PHP Класс Nelmio\Alice\Entity\StdClassFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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