123 lines
2.3 KiB
PHP
Executable File
123 lines
2.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Mageplaza
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the mageplaza.com license that is
|
|
* available through the world-wide-web at this URL:
|
|
* https://www.mageplaza.com/LICENSE.txt
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
|
* version in the future.
|
|
*
|
|
* @category Mageplaza
|
|
* @package Mageplaza_Blog
|
|
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
|
* @license https://www.mageplaza.com/LICENSE.txt
|
|
*/
|
|
|
|
namespace Mageplaza\Blog\Model\Config;
|
|
|
|
use Magento\Framework\DataObject;
|
|
use Mageplaza\Blog\Api\Data\Config\GeneralInterface;
|
|
|
|
/**
|
|
* Class General
|
|
* @package Mageplaza\Blog\Model\Config
|
|
*/
|
|
class General extends DataObject implements GeneralInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getBlogName()
|
|
{
|
|
return $this->getData(self::BLOG_NAME);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setBlogName($value)
|
|
{
|
|
$this->setData(self::BLOG_NAME, $value);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getIsLinkInMenu()
|
|
{
|
|
return $this->getData(self::IS_LINK_IN_MENU);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setIsLinkInMenu($value)
|
|
{
|
|
$this->setData(self::IS_LINK_IN_MENU, $value);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getIsDisplayAuthor()
|
|
{
|
|
return $this->getData(self::IS_DISPLAY_AUTHOR);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setIsDisplayAuthor($value)
|
|
{
|
|
$this->setData(self::IS_DISPLAY_AUTHOR, $value);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getBlogMode()
|
|
{
|
|
return $this->getData(self::BLOG_MODE);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setBlogMode($value)
|
|
{
|
|
$this->setData(self::BLOG_MODE, $value);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getBlogColor()
|
|
{
|
|
return $this->getData(self::BLOG_COLOR);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function setBlogColor($value)
|
|
{
|
|
$this->setData(self::BLOG_COLOR, $value);
|
|
|
|
return $this;
|
|
}
|
|
}
|