meilisearch/Classes/System/Mvc/Backend/ModuleData.php
2021-04-17 00:26:33 +02:00

85 lines
2.0 KiB
PHP

<?php
namespace WapplerSystems\Meilisearch\System\Mvc\Backend;
/***************************************************************
* Copyright notice
*
* (c) 2010-2017 dkd Internet Service GmbH <solr-support@dkd.de>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use WapplerSystems\Meilisearch\Domain\Site\Site;
/**
* Represents the state of needed for backend module components e.g. selected option from select menu, enabled or disabled button, etc..
*/
class ModuleData
{
/**
* @var Site
*/
protected $site = null;
/**
* @var string
*/
protected $core = '';
/**
* Gets the site to work with.
*
* @return Site
*/
public function getSite()
{
return $this->site;
}
/**
* Sets the site to work with.
*
* @param Site $site
* @return void
*/
public function setSite(Site $site)
{
$this->site = $site;
}
/**
* Gets the name of the currently selected core
*
* @return string Selected core name
*/
public function getCore()
{
return $this->core;
}
/**
* Sets the name of the currently selected core
*
* @param string $core Selected core name
*/
public function setCore($core)
{
$this->core = $core;
}
}