From ed5b33c7089dc6500f176fcbac30d61bb9ad6f51 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 24 Jun 2024 03:07:12 +0300 Subject: [PATCH] implement Text entity --- src/Entity/Text.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/Entity/Text.php diff --git a/src/Entity/Text.php b/src/Entity/Text.php new file mode 100644 index 0000000..58d5ccb --- /dev/null +++ b/src/Entity/Text.php @@ -0,0 +1,37 @@ +setData( + $data + ); + } + + public function setData( + string $data + ): void + { + $this->_data = trim( + $data + ); + } + + public function getData(): string + { + return $this->_data; + } + + public function toString(): string + { + return $this->_data; + } +} \ No newline at end of file