From 3e624d9b5467fbf7594f06a1addec201f39c9e0a Mon Sep 17 00:00:00 2001 From: Rafal Wesolowski Date: Sat, 21 Mar 2020 13:37:40 +0100 Subject: [PATCH] schema --- message_info/NumberAPIDataProvider.php | 289 ++++++++++++++++++ ...umberChangeStateRequestAPIDataProvider.php | 181 +++++++++++ .../NumberCreationRequestAPIDataProvider.php | 181 +++++++++++ message_info/NumberListAPIDataProvider.php | 85 ++++++ message_info/TestDataProvider.php | 127 -------- message_info/UserAPIDataProvider.php | 181 +++++++++++ message_info/UserListAPIDataProvider.php | 85 ++++++ schema/schema.dataprovider.xml | 42 +++ schema/test.dataprovider.xml | 13 - 9 files changed, 1044 insertions(+), 140 deletions(-) create mode 100644 message_info/NumberAPIDataProvider.php create mode 100644 message_info/NumberChangeStateRequestAPIDataProvider.php create mode 100644 message_info/NumberCreationRequestAPIDataProvider.php create mode 100644 message_info/NumberListAPIDataProvider.php delete mode 100644 message_info/TestDataProvider.php create mode 100644 message_info/UserAPIDataProvider.php create mode 100644 message_info/UserListAPIDataProvider.php create mode 100644 schema/schema.dataprovider.xml delete mode 100644 schema/test.dataprovider.xml diff --git a/message_info/NumberAPIDataProvider.php b/message_info/NumberAPIDataProvider.php new file mode 100644 index 0000000..b7e9689 --- /dev/null +++ b/message_info/NumberAPIDataProvider.php @@ -0,0 +1,289 @@ +doctorId; + } + + + /** + * @param int $doctorId + * @return NumberAPIDataProvider + */ + public function setDoctorId(int $doctorId) + { + $this->doctorId = $doctorId; + + return $this; + } + + + /** + * @return NumberAPIDataProvider + */ + public function unsetDoctorId() + { + $this->doctorId = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasDoctorId() + { + return ($this->doctorId !== null && $this->doctorId !== []); + } + + + /** + * @return string + */ + public function getNumber(): string + { + return $this->number; + } + + + /** + * @param string $number + * @return NumberAPIDataProvider + */ + public function setNumber(string $number) + { + $this->number = $number; + + return $this; + } + + + /** + * @return NumberAPIDataProvider + */ + public function unsetNumber() + { + $this->number = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasNumber() + { + return ($this->number !== null && $this->number !== []); + } + + + /** + * @return string + */ + public function getCreationDate(): string + { + return $this->creationDate; + } + + + /** + * @param string $creationDate + * @return NumberAPIDataProvider + */ + public function setCreationDate(string $creationDate) + { + $this->creationDate = $creationDate; + + return $this; + } + + + /** + * @return NumberAPIDataProvider + */ + public function unsetCreationDate() + { + $this->creationDate = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasCreationDate() + { + return ($this->creationDate !== null && $this->creationDate !== []); + } + + + /** + * @return string + */ + public function getModifiedStateDate(): ?string + { + return $this->modifiedStateDate; + } + + + /** + * @param string $modifiedStateDate + * @return NumberAPIDataProvider + */ + public function setModifiedStateDate(?string $modifiedStateDate = null) + { + $this->modifiedStateDate = $modifiedStateDate; + + return $this; + } + + + /** + * @return NumberAPIDataProvider + */ + public function unsetModifiedStateDate() + { + $this->modifiedStateDate = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasModifiedStateDate() + { + return ($this->modifiedStateDate !== null && $this->modifiedStateDate !== []); + } + + + /** + * @return bool + */ + public function getStatus(): ?bool + { + return $this->status; + } + + + /** + * @param bool $status + * @return NumberAPIDataProvider + */ + public function setStatus(?bool $status = null) + { + $this->status = $status; + + return $this; + } + + + /** + * @return NumberAPIDataProvider + */ + public function unsetStatus() + { + $this->status = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasStatus() + { + return ($this->status !== null && $this->status !== []); + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'doctorId' => + array ( + 'name' => 'doctorId', + 'allownull' => false, + 'default' => '', + 'type' => 'int', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'number' => + array ( + 'name' => 'number', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'creationDate' => + array ( + 'name' => 'creationDate', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'modifiedStateDate' => + array ( + 'name' => 'modifiedStateDate', + 'allownull' => true, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'status' => + array ( + 'name' => 'status', + 'allownull' => true, + 'default' => '', + 'type' => 'bool', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + ); + } +} diff --git a/message_info/NumberChangeStateRequestAPIDataProvider.php b/message_info/NumberChangeStateRequestAPIDataProvider.php new file mode 100644 index 0000000..3b09e38 --- /dev/null +++ b/message_info/NumberChangeStateRequestAPIDataProvider.php @@ -0,0 +1,181 @@ +number; + } + + + /** + * @param string $number + * @return NumberChangeStateRequestAPIDataProvider + */ + public function setNumber(string $number) + { + $this->number = $number; + + return $this; + } + + + /** + * @return NumberChangeStateRequestAPIDataProvider + */ + public function unsetNumber() + { + $this->number = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasNumber() + { + return ($this->number !== null && $this->number !== []); + } + + + /** + * @return string + */ + public function getModifiedStateDate(): string + { + return $this->modifiedStateDate; + } + + + /** + * @param string $modifiedStateDate + * @return NumberChangeStateRequestAPIDataProvider + */ + public function setModifiedStateDate(string $modifiedStateDate) + { + $this->modifiedStateDate = $modifiedStateDate; + + return $this; + } + + + /** + * @return NumberChangeStateRequestAPIDataProvider + */ + public function unsetModifiedStateDate() + { + $this->modifiedStateDate = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasModifiedStateDate() + { + return ($this->modifiedStateDate !== null && $this->modifiedStateDate !== []); + } + + + /** + * @return bool + */ + public function getStatus(): bool + { + return $this->status; + } + + + /** + * @param bool $status + * @return NumberChangeStateRequestAPIDataProvider + */ + public function setStatus(bool $status) + { + $this->status = $status; + + return $this; + } + + + /** + * @return NumberChangeStateRequestAPIDataProvider + */ + public function unsetStatus() + { + $this->status = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasStatus() + { + return ($this->status !== null && $this->status !== []); + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'number' => + array ( + 'name' => 'number', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'modifiedStateDate' => + array ( + 'name' => 'modifiedStateDate', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'status' => + array ( + 'name' => 'status', + 'allownull' => false, + 'default' => '', + 'type' => 'bool', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + ); + } +} diff --git a/message_info/NumberCreationRequestAPIDataProvider.php b/message_info/NumberCreationRequestAPIDataProvider.php new file mode 100644 index 0000000..711ce91 --- /dev/null +++ b/message_info/NumberCreationRequestAPIDataProvider.php @@ -0,0 +1,181 @@ +doctorId; + } + + + /** + * @param int $doctorId + * @return NumberCreationRequestAPIDataProvider + */ + public function setDoctorId(int $doctorId) + { + $this->doctorId = $doctorId; + + return $this; + } + + + /** + * @return NumberCreationRequestAPIDataProvider + */ + public function unsetDoctorId() + { + $this->doctorId = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasDoctorId() + { + return ($this->doctorId !== null && $this->doctorId !== []); + } + + + /** + * @return string + */ + public function getNumber(): string + { + return $this->number; + } + + + /** + * @param string $number + * @return NumberCreationRequestAPIDataProvider + */ + public function setNumber(string $number) + { + $this->number = $number; + + return $this; + } + + + /** + * @return NumberCreationRequestAPIDataProvider + */ + public function unsetNumber() + { + $this->number = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasNumber() + { + return ($this->number !== null && $this->number !== []); + } + + + /** + * @return string + */ + public function getCreationDate(): string + { + return $this->creationDate; + } + + + /** + * @param string $creationDate + * @return NumberCreationRequestAPIDataProvider + */ + public function setCreationDate(string $creationDate) + { + $this->creationDate = $creationDate; + + return $this; + } + + + /** + * @return NumberCreationRequestAPIDataProvider + */ + public function unsetCreationDate() + { + $this->creationDate = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasCreationDate() + { + return ($this->creationDate !== null && $this->creationDate !== []); + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'doctorId' => + array ( + 'name' => 'doctorId', + 'allownull' => false, + 'default' => '', + 'type' => 'int', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'number' => + array ( + 'name' => 'number', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'creationDate' => + array ( + 'name' => 'creationDate', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + ); + } +} diff --git a/message_info/NumberListAPIDataProvider.php b/message_info/NumberListAPIDataProvider.php new file mode 100644 index 0000000..be89c80 --- /dev/null +++ b/message_info/NumberListAPIDataProvider.php @@ -0,0 +1,85 @@ +setNumbers; + } + + + /** + * @param \MessageInfo\NumberAPIDataProvider[] $setNumbers + * @return NumberListAPIDataProvider + */ + public function setSetNumbers(array $setNumbers) + { + $this->setNumbers = $setNumbers; + + return $this; + } + + + /** + * @return NumberListAPIDataProvider + */ + public function unsetSetNumbers() + { + $this->setNumbers = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasSetNumbers() + { + return ($this->setNumbers !== null && $this->setNumbers !== []); + } + + + /** + * @param \MessageInfo\NumberAPIDataProvider $addNumber + * @return NumberListAPIDataProvider + */ + public function addaddNumber(NumberAPIDataProvider $addNumber) + { + $this->setNumbers[] = $addNumber; return $this; + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'setNumbers' => + array ( + 'name' => 'setNumbers', + 'allownull' => false, + 'default' => '', + 'type' => '\\MessageInfo\\NumberAPIDataProvider[]', + 'is_collection' => true, + 'is_dataprovider' => false, + 'isCamelCase' => false, + 'singleton' => 'addNumber', + 'singleton_type' => '\\MessageInfo\\NumberAPIDataProvider', + ), + ); + } +} diff --git a/message_info/TestDataProvider.php b/message_info/TestDataProvider.php deleted file mode 100644 index ffc44d6..0000000 --- a/message_info/TestDataProvider.php +++ /dev/null @@ -1,127 +0,0 @@ -testInt; - } - - - /** - * @param int $testInt - * @return TestDataProvider - */ - public function setTestInt(int $testInt) - { - $this->testInt = $testInt; - - return $this; - } - - - /** - * @return TestDataProvider - */ - public function unsetTestInt() - { - $this->testInt = null; - - return $this; - } - - - /** - * @return bool - */ - public function hasTestInt() - { - return ($this->testInt !== null && $this->testInt !== []); - } - - - /** - * @return string - */ - public function getTestString(): string - { - return $this->testString; - } - - - /** - * @param string $testString - * @return TestDataProvider - */ - public function setTestString(string $testString) - { - $this->testString = $testString; - - return $this; - } - - - /** - * @return TestDataProvider - */ - public function unsetTestString() - { - $this->testString = null; - - return $this; - } - - - /** - * @return bool - */ - public function hasTestString() - { - return ($this->testString !== null && $this->testString !== []); - } - - - /** - * @return array - */ - protected function getElements(): array - { - return array ( - 'testInt' => - array ( - 'name' => 'testInt', - 'allownull' => false, - 'default' => '', - 'type' => 'int', - 'is_collection' => false, - 'is_dataprovider' => false, - 'isCamelCase' => false, - ), - 'testString' => - array ( - 'name' => 'testString', - 'allownull' => false, - 'default' => '', - 'type' => 'string', - 'is_collection' => false, - 'is_dataprovider' => false, - 'isCamelCase' => false, - ), - ); - } -} diff --git a/message_info/UserAPIDataProvider.php b/message_info/UserAPIDataProvider.php new file mode 100644 index 0000000..7d64b39 --- /dev/null +++ b/message_info/UserAPIDataProvider.php @@ -0,0 +1,181 @@ +userId; + } + + + /** + * @param int $userId + * @return UserAPIDataProvider + */ + public function setUserId(int $userId) + { + $this->userId = $userId; + + return $this; + } + + + /** + * @return UserAPIDataProvider + */ + public function unsetUserId() + { + $this->userId = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasUserId() + { + return ($this->userId !== null && $this->userId !== []); + } + + + /** + * @return string + */ + public function getEmail(): string + { + return $this->email; + } + + + /** + * @param string $email + * @return UserAPIDataProvider + */ + public function setEmail(string $email) + { + $this->email = $email; + + return $this; + } + + + /** + * @return UserAPIDataProvider + */ + public function unsetEmail() + { + $this->email = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasEmail() + { + return ($this->email !== null && $this->email !== []); + } + + + /** + * @return string + */ + public function getRole(): string + { + return $this->role; + } + + + /** + * @param string $role + * @return UserAPIDataProvider + */ + public function setRole(string $role) + { + $this->role = $role; + + return $this; + } + + + /** + * @return UserAPIDataProvider + */ + public function unsetRole() + { + $this->role = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasRole() + { + return ($this->role !== null && $this->role !== []); + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'userId' => + array ( + 'name' => 'userId', + 'allownull' => false, + 'default' => '', + 'type' => 'int', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'email' => + array ( + 'name' => 'email', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + 'role' => + array ( + 'name' => 'role', + 'allownull' => false, + 'default' => '', + 'type' => 'string', + 'is_collection' => false, + 'is_dataprovider' => false, + 'isCamelCase' => false, + ), + ); + } +} diff --git a/message_info/UserListAPIDataProvider.php b/message_info/UserListAPIDataProvider.php new file mode 100644 index 0000000..f4cfe4b --- /dev/null +++ b/message_info/UserListAPIDataProvider.php @@ -0,0 +1,85 @@ +setUsers; + } + + + /** + * @param \MessageInfo\UserAPIDataProvider[] $setUsers + * @return UserListAPIDataProvider + */ + public function setSetUsers(array $setUsers) + { + $this->setUsers = $setUsers; + + return $this; + } + + + /** + * @return UserListAPIDataProvider + */ + public function unsetSetUsers() + { + $this->setUsers = null; + + return $this; + } + + + /** + * @return bool + */ + public function hasSetUsers() + { + return ($this->setUsers !== null && $this->setUsers !== []); + } + + + /** + * @param \MessageInfo\UserAPIDataProvider $addUser + * @return UserListAPIDataProvider + */ + public function addaddUser(UserAPIDataProvider $addUser) + { + $this->setUsers[] = $addUser; return $this; + } + + + /** + * @return array + */ + protected function getElements(): array + { + return array ( + 'setUsers' => + array ( + 'name' => 'setUsers', + 'allownull' => false, + 'default' => '', + 'type' => '\\MessageInfo\\UserAPIDataProvider[]', + 'is_collection' => true, + 'is_dataprovider' => false, + 'isCamelCase' => false, + 'singleton' => 'addUser', + 'singleton_type' => '\\MessageInfo\\UserAPIDataProvider', + ), + ); + } +} diff --git a/schema/schema.dataprovider.xml b/schema/schema.dataprovider.xml new file mode 100644 index 0000000..42b9078 --- /dev/null +++ b/schema/schema.dataprovider.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/test.dataprovider.xml b/schema/test.dataprovider.xml deleted file mode 100644 index 7f52d70..0000000 --- a/schema/test.dataprovider.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - -