PHP Class Webiny\Component\Entity\EntityAttributeBuilder

Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$classMap

Protected Properties

Свойство Type Description
$attribute
$attributes
$entity

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

arr() public méthode

public arr ( ) : ArrayAttribute
Résultat Webiny\Component\Entity\Attribute\ArrayAttribute

attr() public méthode

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

boolean() public méthode

public boolean ( ) : BooleanAttribute
Résultat Webiny\Component\Entity\Attribute\BooleanAttribute

char() public méthode

public char ( ) : CharAttribute
Résultat Webiny\Component\Entity\Attribute\CharAttribute

date() public méthode

public date ( ) : DateAttribute
Résultat Webiny\Component\Entity\Attribute\DateAttribute

datetime() public méthode

public datetime ( ) : DateTimeAttribute
Résultat Webiny\Component\Entity\Attribute\DateTimeAttribute

dynamic() public méthode

public dynamic ( callable $callable ) : DynamicAttribute
$callable callable
Résultat Webiny\Component\Entity\Attribute\DynamicAttribute

float() public méthode

public float ( ) : FloatAttribute
Résultat Webiny\Component\Entity\Attribute\FloatAttribute

geoPoint() public méthode

public geoPoint ( ) : GeoPointAttribute
Résultat Webiny\Component\Entity\Attribute\GeoPointAttribute

integer() public méthode

public integer ( ) : IntegerAttribute
Résultat Webiny\Component\Entity\Attribute\IntegerAttribute

many2many() public méthode

public many2many ( string $collectionName ) : Many2ManyAttribute
$collectionName string Intermediate collection name
Résultat Webiny\Component\Entity\Attribute\Many2ManyAttribute

many2one() public méthode

public many2one ( ) : Many2OneAttribute
Résultat Webiny\Component\Entity\Attribute\Many2OneAttribute

object() public méthode

public object ( ) : ObjectAttribute
Résultat Webiny\Component\Entity\Attribute\ObjectAttribute

one2many() public méthode

public one2many ( $relatedAttribute ) : One2ManyAttribute
$relatedAttribute
Résultat Webiny\Component\Entity\Attribute\One2ManyAttribute

smart() public méthode

Set attribute instance
public smart ( AbstractAttribute $attribute ) : AbstractAttribute
$attribute Webiny\Component\Entity\Attribute\AbstractAttribute
Résultat Webiny\Component\Entity\Attribute\AbstractAttribute

Property Details

$attribute protected_oe property

protected $attribute

$attributes protected_oe property

protected $attributes

$classMap public_oe static_oe property

public static $classMap

$entity protected_oe property

protected $entity