From 498f406867317f56af178dd71c838cf8d81d9c06 Mon Sep 17 00:00:00 2001 From: Maximilian Ruta Date: Tue, 23 Jul 2019 01:48:47 +0200 Subject: [PATCH] Add groups --- serializer/ExternalRef.yaml | 6 ++ serializer/Group.yaml | 13 ++++ serializer/GroupList.yaml | 4 ++ src/ExternalRef.php | 48 +++++++++++++++ src/Group.php | 119 ++++++++++++++++++++++++++++++++++++ src/GroupFilter.php | 111 +++++++++++++++++++++++++++++++++ src/GroupList.php | 28 +++++++++ 7 files changed, 329 insertions(+) create mode 100644 serializer/ExternalRef.yaml create mode 100644 serializer/Group.yaml create mode 100644 serializer/GroupList.yaml create mode 100644 src/ExternalRef.php create mode 100644 src/Group.php create mode 100644 src/GroupFilter.php create mode 100644 src/GroupList.php diff --git a/serializer/ExternalRef.yaml b/serializer/ExternalRef.yaml new file mode 100644 index 0000000..5b642c2 --- /dev/null +++ b/serializer/ExternalRef.yaml @@ -0,0 +1,6 @@ +Netzbegruenung\Api\Model\ExternalRef: + properties: + type: + type: string + key: + type: string diff --git a/serializer/Group.yaml b/serializer/Group.yaml new file mode 100644 index 0000000..f489675 --- /dev/null +++ b/serializer/Group.yaml @@ -0,0 +1,13 @@ +Netzbegruenung\Api\Model\Group: + properties: + name: + type: string + type: + type: string + active: + type: boolean + level: + type: string + externalRefs: + type: array + diff --git a/serializer/GroupList.yaml b/serializer/GroupList.yaml new file mode 100644 index 0000000..29a37fb --- /dev/null +++ b/serializer/GroupList.yaml @@ -0,0 +1,4 @@ +Netzbegruenung\Api\Model\GroupList: + properties: + items: + type: array diff --git a/src/ExternalRef.php b/src/ExternalRef.php new file mode 100644 index 0000000..f734dbe --- /dev/null +++ b/src/ExternalRef.php @@ -0,0 +1,48 @@ +type; + } + + /** + * @param string|null $type + */ + public function setType(?string $type): void + { + $this->type = $type; + } + + /** + * @return string|null + */ + public function getKey(): ?string + { + return $this->key; + } + + /** + * @param string|null $key + */ + public function setKey(?string $key): void + { + $this->key = $key; + } +} \ No newline at end of file diff --git a/src/Group.php b/src/Group.php new file mode 100644 index 0000000..0505b85 --- /dev/null +++ b/src/Group.php @@ -0,0 +1,119 @@ +name; + } + + /** + * @param string|null $name + */ + public function setName(?string $name): void + { + $this->name = $name; + } + + /** + * @return string|null + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * @param string|null $type + */ + public function setType(?string $type): void + { + $this->type = $type; + } + + /** + * @return bool|null + */ + public function getActive(): ?bool + { + return $this->active; + } + + /** + * @param bool|null $active + */ + public function setActive(?bool $active): void + { + $this->active = $active; + } + + /** + * @return string|null + */ + public function getLevel(): ?string + { + return $this->level; + } + + /** + * @param string|null $level + */ + public function setLevel(?string $level): void + { + $this->level = $level; + } + + /** + * @return ExternalRef[] + */ + public function getExternalRefs(): array + { + return $this->externalRefs; + } + + /** + * @param ExternalRef $externalRef + */ + public function addExternalRef(ExternalRef $externalRef): void + { + $this->externalRefs[] = $externalRef; + } + + /** + * @param ExternalRef[] $externalRefs + */ + public function setExternalRefs(array $externalRefs): void + { + $this->externalRefs = $externalRefs; + } +} diff --git a/src/GroupFilter.php b/src/GroupFilter.php new file mode 100644 index 0000000..6dc681c --- /dev/null +++ b/src/GroupFilter.php @@ -0,0 +1,111 @@ +externalRefsType; + } + + /** + * @param string|null $externalRefsType + */ + public function setExternalRefsType(?string $externalRefsType): void + { + $this->externalRefsType = $externalRefsType; + } + + /** + * @return string|null + */ + public function getExternalRefsKey(): ?string + { + return $this->externalRefsKey; + } + + /** + * @param string|null $externalRefsKey + */ + public function setExternalRefsKey(?string $externalRefsKey): void + { + $this->externalRefsKey = $externalRefsKey; + } + + /** + * @return bool|null + */ + public function getActive(): ?bool + { + return $this->active; + } + + /** + * @param bool|null $active + */ + public function setActive(?bool $active): void + { + $this->active = $active; + } + + /** + * @return string|null + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * @param string|null $type + */ + public function setType(?string $type): void + { + $this->type = $type; + } + + /** + * @return string|null + */ + public function getLevel(): ?string + { + return $this->level; + } + + /** + * @param string|null $level + */ + public function setLevel(?string $level): void + { + $this->level = $level; + } +} diff --git a/src/GroupList.php b/src/GroupList.php new file mode 100644 index 0000000..1b1f31f --- /dev/null +++ b/src/GroupList.php @@ -0,0 +1,28 @@ +items; + } + + /** + * @param Group[] $items + */ + public function setItems(array $items): void + { + $this->items = $items; + } +} \ No newline at end of file