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