PHP Класс Webiny\Component\Entity\EntityAttributeBuilder

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

Открытые свойства

Свойство Тип Описание
$classMap

Защищенные свойства (Protected)

Свойство Тип Описание
$attribute
$attributes
$entity

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

Метод Описание
__construct ( AbstractEntity $entity, ArrayObject $attributes )
arr ( ) : ArrayAttribute
attr ( $attribute ) Create a new attribute
boolean ( ) : BooleanAttribute
char ( ) : CharAttribute
date ( ) : DateAttribute
datetime ( ) : DateTimeAttribute
dynamic ( callable $callable ) : DynamicAttribute
float ( ) : FloatAttribute
geoPoint ( ) : GeoPointAttribute
integer ( ) : IntegerAttribute
many2many ( string $collectionName ) : Many2ManyAttribute
many2one ( ) : Many2OneAttribute
object ( ) : ObjectAttribute
one2many ( $relatedAttribute ) : One2ManyAttribute
smart ( AbstractAttribute $attribute ) : AbstractAttribute Set attribute instance

Описание методов

__construct() публичный Метод

public __construct ( AbstractEntity $entity, ArrayObject $attributes )
$entity AbstractEntity
$attributes Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject

arr() публичный Метод

public arr ( ) : ArrayAttribute
Результат Webiny\Component\Entity\Attribute\ArrayAttribute

attr() публичный Метод

Create a new attribute
public attr ( $attribute )
$attribute

boolean() публичный Метод

public boolean ( ) : BooleanAttribute
Результат Webiny\Component\Entity\Attribute\BooleanAttribute

char() публичный Метод

public char ( ) : CharAttribute
Результат Webiny\Component\Entity\Attribute\CharAttribute

date() публичный Метод

public date ( ) : DateAttribute
Результат Webiny\Component\Entity\Attribute\DateAttribute

datetime() публичный Метод

public datetime ( ) : DateTimeAttribute
Результат Webiny\Component\Entity\Attribute\DateTimeAttribute

dynamic() публичный Метод

public dynamic ( callable $callable ) : DynamicAttribute
$callable callable
Результат Webiny\Component\Entity\Attribute\DynamicAttribute

float() публичный Метод

public float ( ) : FloatAttribute
Результат Webiny\Component\Entity\Attribute\FloatAttribute

geoPoint() публичный Метод

public geoPoint ( ) : GeoPointAttribute
Результат Webiny\Component\Entity\Attribute\GeoPointAttribute

integer() публичный Метод

public integer ( ) : IntegerAttribute
Результат Webiny\Component\Entity\Attribute\IntegerAttribute

many2many() публичный Метод

public many2many ( string $collectionName ) : Many2ManyAttribute
$collectionName string Intermediate collection name
Результат Webiny\Component\Entity\Attribute\Many2ManyAttribute

many2one() публичный Метод

public many2one ( ) : Many2OneAttribute
Результат Webiny\Component\Entity\Attribute\Many2OneAttribute

object() публичный Метод

public object ( ) : ObjectAttribute
Результат Webiny\Component\Entity\Attribute\ObjectAttribute

one2many() публичный Метод

public one2many ( $relatedAttribute ) : One2ManyAttribute
$relatedAttribute
Результат Webiny\Component\Entity\Attribute\One2ManyAttribute

smart() публичный Метод

Set attribute instance
public smart ( AbstractAttribute $attribute ) : AbstractAttribute
$attribute Webiny\Component\Entity\Attribute\AbstractAttribute
Результат Webiny\Component\Entity\Attribute\AbstractAttribute

Описание свойств

$attribute защищенное свойство

protected $attribute

$attributes защищенное свойство

protected $attributes

$classMap публичное статическое свойство

public static $classMap

$entity защищенное свойство

protected $entity