Add models
This commit is contained in:
parent
e30b1bb6d5
commit
d41e34aa56
|
@ -0,0 +1,8 @@
|
|||
Netzbegruenung\Api\Model\RegionalChapter:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
|
@ -0,0 +1,6 @@
|
|||
Netzbegruenung\Api\Model\RegionalChapterFilter:
|
||||
properties:
|
||||
limit:
|
||||
type: integer
|
||||
offset:
|
||||
type: integer
|
|
@ -0,0 +1,6 @@
|
|||
Netzbegruenung\Api\Model\RegionalChapterList:
|
||||
properties:
|
||||
count:
|
||||
type: integer
|
||||
items:
|
||||
type: array<Netzbegruenung\Api\Model\RegionalChapter>
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class RegionalChapter
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getId(): string
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class RegionalChapterFilter
|
||||
{
|
||||
/**
|
||||
* @var int|null
|
||||
*/
|
||||
protected $limit;
|
||||
|
||||
/**
|
||||
* @var int|null
|
||||
*/
|
||||
protected $offset;
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLimit(): ?int
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class RegionalChapterList
|
||||
{
|
||||
/**
|
||||
* @var int|null
|
||||
*/
|
||||
protected $count;
|
||||
|
||||
/**
|
||||
* @var RegionalChapter[]
|
||||
*/
|
||||
protected $items = [];
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCount(): ?int
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue