2015-05-18 14:26:29 +02:00
|
|
|
<?php namespace Todaymade\Daux\Format\Base;
|
|
|
|
|
|
|
|
abstract class SimplePage implements Page
|
|
|
|
{
|
|
|
|
protected $title;
|
|
|
|
protected $content;
|
|
|
|
|
|
|
|
public function __construct($title, $content)
|
|
|
|
{
|
|
|
|
$this->initializePage($title, $content);
|
|
|
|
}
|
|
|
|
|
2016-03-13 21:51:15 +01:00
|
|
|
public function getPureContent()
|
|
|
|
{
|
|
|
|
return $this->content;
|
|
|
|
}
|
|
|
|
|
2015-05-18 14:26:29 +02:00
|
|
|
public function getContent()
|
|
|
|
{
|
2017-06-06 23:16:45 +02:00
|
|
|
return $this->generatePage();
|
2015-05-18 14:26:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function initializePage($title, $content)
|
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
$this->content = $content;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function generatePage()
|
|
|
|
{
|
|
|
|
return $this->content;
|
|
|
|
}
|
|
|
|
}
|