diff --git a/serializer/RegionalChapter.yaml b/serializer/RegionalChapter.yaml new file mode 100644 index 0000000..9aa36b8 --- /dev/null +++ b/serializer/RegionalChapter.yaml @@ -0,0 +1,8 @@ +Netzbegruenung\Api\Model\RegionalChapter: + properties: + id: + type: string + name: + type: string + type: + type: string diff --git a/serializer/RegionalChapterFilter.yaml b/serializer/RegionalChapterFilter.yaml new file mode 100644 index 0000000..bc68628 --- /dev/null +++ b/serializer/RegionalChapterFilter.yaml @@ -0,0 +1,6 @@ +Netzbegruenung\Api\Model\RegionalChapterFilter: + properties: + limit: + type: integer + offset: + type: integer diff --git a/serializer/RegionalChapterList.yaml b/serializer/RegionalChapterList.yaml new file mode 100644 index 0000000..2d400f9 --- /dev/null +++ b/serializer/RegionalChapterList.yaml @@ -0,0 +1,6 @@ +Netzbegruenung\Api\Model\RegionalChapterList: + properties: + count: + type: integer + items: + type: array diff --git a/src/RegionalChapter.php b/src/RegionalChapter.php new file mode 100644 index 0000000..3e58c50 --- /dev/null +++ b/src/RegionalChapter.php @@ -0,0 +1,69 @@ +id; + } + + /** + * @param string $id + */ + public function setId(string $id): void + { + $this->id = $id; + } + + /** + * @return string + */ + public function getName(): string + { + return $this->name; + } + + /** + * @param string $name + */ + public function setName(string $name): void + { + $this->name = $name; + } + + /** + * @return string + */ + public function getType(): string + { + return $this->type; + } + + /** + * @param string $type + */ + public function setType(string $type): void + { + $this->type = $type; + } +} \ No newline at end of file diff --git a/src/RegionalChapterFilter.php b/src/RegionalChapterFilter.php new file mode 100644 index 0000000..87ade1d --- /dev/null +++ b/src/RegionalChapterFilter.php @@ -0,0 +1,48 @@ +limit; + } + + /** + * @param int|null $limit + */ + public function setLimit(?int $limit): void + { + $this->limit = $limit; + } + + /** + * @return int|null + */ + public function getOffset(): ?int + { + return $this->offset; + } + + /** + * @param int|null $offset + */ + public function setOffset(?int $offset): void + { + $this->offset = $offset; + } +} \ No newline at end of file diff --git a/src/RegionalChapterList.php b/src/RegionalChapterList.php new file mode 100644 index 0000000..2cf23eb --- /dev/null +++ b/src/RegionalChapterList.php @@ -0,0 +1,56 @@ +count; + } + + /** + * @param int|null $count + */ + public function setCount(?int $count): void + { + $this->count = $count; + } + + /** + * @return RegionalChapter[] + */ + public function getItems(): array + { + return $this->items; + } + + /** + * @param RegionalChapter[] $items + */ + public function setItems(array $items): void + { + $this->items = $items; + } + + /** + * @param RegionalChapter $item + */ + public function addItem(RegionalChapter $item): void + { + $this->items[] = $item; + } +} \ No newline at end of file