<?php

class Post {

    public $id;
    public $title;
    public $url;
    public $thumbnail;
    public $author;
    public $content;
    public $created_at;

    public function __construct($id, $title, $url, $thumbnail, $author, $content, $created_at) {
        
        $this->id = $id;
        $this->title = $title;
        $this->url = $url;
        $this->thumbnail = $thumbnail;
        $this->author = $author;
        $this->content = $content;
        $this->created_at = $created_at;
    }
}
?>