mirror of
https://github.com/netzbegruenung/api-models-php.git
synced 2024-04-27 00:04:53 +02:00
Add groups
This commit is contained in:
parent
d41e34aa56
commit
498f406867
6
serializer/ExternalRef.yaml
Normal file
6
serializer/ExternalRef.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
Netzbegruenung\Api\Model\ExternalRef:
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
key:
|
||||
type: string
|
13
serializer/Group.yaml
Normal file
13
serializer/Group.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
Netzbegruenung\Api\Model\Group:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
active:
|
||||
type: boolean
|
||||
level:
|
||||
type: string
|
||||
externalRefs:
|
||||
type: array<Netzbegruenung\Api\Model\ExternalRef>
|
||||
|
4
serializer/GroupList.yaml
Normal file
4
serializer/GroupList.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
Netzbegruenung\Api\Model\GroupList:
|
||||
properties:
|
||||
items:
|
||||
type: array<Netzbegruenung\Api\Model\Group>
|
48
src/ExternalRef.php
Normal file
48
src/ExternalRef.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class ExternalRef
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $key;
|
||||
|
||||
/**
|
||||
* @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 getKey(): ?string
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|null $key
|
||||
*/
|
||||
public function setKey(?string $key): void
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
}
|
119
src/Group.php
Normal file
119
src/Group.php
Normal file
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class Group
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @var boolean|null
|
||||
*/
|
||||
protected $active;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $level;
|
||||
|
||||
/**
|
||||
* @var ExternalRef[]
|
||||
*/
|
||||
protected $externalRefs = [];
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
111
src/GroupFilter.php
Normal file
111
src/GroupFilter.php
Normal file
|
@ -0,0 +1,111 @@
|
|||
<?php
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class GroupFilter
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $externalRefsType;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $externalRefsKey;
|
||||
|
||||
/**
|
||||
* @var boolean|null
|
||||
*/
|
||||
protected $active;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $level;
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getExternalRefsType(): ?string
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
28
src/GroupList.php
Normal file
28
src/GroupList.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
|
||||
namespace Netzbegruenung\Api\Model;
|
||||
|
||||
class GroupList
|
||||
{
|
||||
/**
|
||||
* @var Group[]
|
||||
*/
|
||||
protected $items = [];
|
||||
|
||||
/**
|
||||
* @return Group[]
|
||||
*/
|
||||
public function getItems(): array
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Group[] $items
|
||||
*/
|
||||
public function setItems(array $items): void
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue