Skip to content

Commit

Permalink
Merge pull request #81 from hhoechtl/master
Browse files Browse the repository at this point in the history
add missing properties
  • Loading branch information
vienthuong authored Dec 25, 2023
2 parents 389efca + a03cc11 commit a784218
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Data/Schema/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class Property extends Struct

public ?string $relation;

public ?string $reference;

public ?string $mapping;

public ?string $local;

public ?string $localField;

public ?string $referenceField;
Expand All @@ -35,9 +41,12 @@ public function __construct(
$this->type = $type;
$this->flags = $flags;
$this->relation = $properties['relation'] ?? null;
$this->local = $properties['local'] ?? null;
$this->localField = $properties['localField'] ?? null;
$this->reference = $properties['reference'] ?? null;
$this->referenceField = $properties['referenceField'] ?? null;
$this->entity = $properties['entity'] ?? null;
$this->mapping = $properties['mapping'] ?? null;
$this->properties = $properties['properties'] ?? null;
$this->name = $name;
}
Expand Down
5 changes: 5 additions & 0 deletions src/Service/Struct/SyncOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function __construct(string $entity, string $action, array $payload)
$this->payload = $payload;
}

public function getEntity(): string
{
return $this->entity;
}

public function addPayload(array $item): void
{
$this->payload[] = $item;
Expand Down

0 comments on commit a784218

Please sign in to comment.