gjerokrsteski/reactphp-pimf

View on GitHub
app/Articles/Model/Article.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Articles\Model;

use Pimf\Model\AsArray;

class Article extends AsArray
{
    protected $id;

    protected $title;

    protected $content;

    public function __construct($title, $content)
    {
        $this->content = $content;
        $this->title = $title;
    }

    public function getContent()
    {
        return $this->content;
    }

    public function getId()
    {
        return $this->id;
    }

    public function getTitle()
    {
        return $this->title;
    }
}