app/Articles/Model/Article.php
<?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;
}
}