backup: live-stand vor erstem git-deployment
This commit is contained in:
47
mysyde/common/classes/Page.php
Normal file
47
mysyde/common/classes/Page.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
namespace DynCom\mysyde\common\classes;
|
||||
use DynCom\mysyde\common\interfaces\Entity;
|
||||
use DynCom\mysyde\common\interfaces\GenericDBModelInterface;
|
||||
use DynCom\mysyde\common\traits\genericDBModelTrait;
|
||||
use DynCom\mysyde\common\traits\universallyGettableTrait;
|
||||
|
||||
|
||||
/**
|
||||
* Class Page
|
||||
* @package DynCom\mysyde\common\classes
|
||||
*/
|
||||
class Page implements GenericDBModelInterface, Entity
|
||||
{
|
||||
|
||||
use genericDBModelTrait, universallyGettableTrait;
|
||||
|
||||
protected $id;
|
||||
protected $title;
|
||||
protected $subtitle;
|
||||
protected $meta_keywords;
|
||||
protected $meta_description;
|
||||
protected $main_language_id;
|
||||
protected $active;
|
||||
protected $modified_date;
|
||||
protected $modified_user;
|
||||
protected $validity_from;
|
||||
protected $validity_to;
|
||||
|
||||
/**
|
||||
* @param PageConfig $config
|
||||
*/
|
||||
public function __construct(PageConfig $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Page
|
||||
*/
|
||||
public function getNullObject()
|
||||
{
|
||||
return new self($this->config);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user