public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null) { parent::__construct('Highlight', [new TextAttribute('title', $this, ['mandatory' => true], $parent_attribute), new TextAttribute('description', $this, [], $parent_attribute)], new Options(), $parent, $parent_attribute); }
public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null) { parent::__construct('Challenge', [new IntegerAttribute('attempts', $this, [], $parent_attribute)], new Options(), $parent, $parent_attribute); }
public function getDefaultAttributes() { $default_attributes = [new TextAttribute('referenced_identifier', $this, [], $this->getParentAttribute())]; $default_attributes_map = new AttributeMap($default_attributes); return parent::getDefaultAttributes()->append($default_attributes_map); }
public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null) { parent::__construct('Badge', [new Text('award', $this, ['mirrored' => true], $parent_attribute)], new Options(), $parent, $parent_attribute); }
public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null) { parent::__construct('Profile', [new Text('nickname', $this, [], $parent_attribute), new Text('alias', $this, ['mirrored' => true], $parent_attribute), new TextListAttribute('tags', $this, ['mirrored' => true], $parent_attribute), new EmbeddedEntityListAttribute('badges', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Game\\Embed\\BadgeType']], $parent_attribute), new EntityReferenceListAttribute('memberships', $this, ['attribute_alias' => 'teams', 'entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Game\\Reference\\MembershipType']], $parent_attribute)], new Options(), $parent, $parent_attribute); }