Exemplo n.º 1
0
 /**
  * @return Schema
  */
 protected static function defineSchema()
 {
     return new Schema('pbj:eme:solicits:edge:submissions:1-0-0', __CLASS__, [Fb::create('multiplicity', T\StringEnumType::create())->withDefault(EdgeMultiplicity::ONE2MANY())->className('Gdbots\\Schemas\\Ncr\\Enum\\EdgeMultiplicity')->build()], [EdgeV1Mixin::create()]);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('from_ref', T\MessageRefType::create())->build(), Fb::create('to_ref', T\MessageRefType::create())->build(), Fb::create('multiplicity', T\StringEnumType::create())->withDefault(EdgeMultiplicity::MULTI())->className('Gdbots\\Schemas\\Ncr\\Enum\\EdgeMultiplicity')->overridable(true)->build(), Fb::create('created_at', T\MicrotimeType::create())->build()];
 }