Add Tweet model

This commit is contained in:
Oliver Davies 2019-01-10 23:48:19 +00:00
parent 6edd99e95e
commit 482df07a6d

36
src/Model/Tweet.php Normal file
View file

@ -0,0 +1,36 @@
<?php
namespace App\Model;
class Tweet
{
private $text;
private $created;
private $author;
private $id;
public function setText(string $text): void
{
$this->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;
}
}