From 482df07a6d67ca04009afae15ec6c3187779cef4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 10 Jan 2019 23:48:19 +0000 Subject: [PATCH] Add Tweet model --- src/Model/Tweet.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/Model/Tweet.php diff --git a/src/Model/Tweet.php b/src/Model/Tweet.php new file mode 100644 index 0000000..92ebd04 --- /dev/null +++ b/src/Model/Tweet.php @@ -0,0 +1,36 @@ +text = $text; + } + + public function setCreated(string $created): void + { + $this->created = $created; + } + + public function setAuthor(string $author): void + { + $this->author = $author; + } + + public function setId(int $id): void + { + $this->id = $id; + } + + public function getId(): int + { + return (int) $this->id; + } +}