<?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);
    }


}