Skip to content
Snippets Groups Projects
Commit 48378d95 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding Model & Repository for TEmplate

parent 3f55dafd
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\SgMail\Domain\Model;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.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 TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
/**
* Template domain model
*/
class Template extends AbstractEntity {
/**
* @var string
*/
protected $extensionKey = '';
/**
* @var string
*/
protected $subject = '';
/**
* @var string
*/
protected $templateName = '';
/**
* @var string
*/
protected $language = '';
/**
* @var string
*/
protected $content = '';
/**
* @return string
*/
public function getExtensionKey() {
return $this->extensionKey;
}
/**
* @param string $extensionKey
*/
public function setExtensionKey($extensionKey) {
$this->extensionKey = $extensionKey;
}
/**
* @return string
*/
public function getSubject() {
return $this->subject;
}
/**
* @param string $subject
*/
public function setSubject($subject) {
$this->subject = $subject;
}
/**
* @return string
*/
public function getTemplateName() {
return $this->templateName;
}
/**
* @param string $templateName
*/
public function setTemplateName($templateName) {
$this->templateName = $templateName;
}
/**
* @return string
*/
public function getLanguage() {
return $this->language;
}
/**
* @param string $language
*/
public function setLanguage($language) {
$this->language = $language;
}
/**
* @return string
*/
public function getContent() {
return $this->content;
}
/**
* @param string $content
*/
public function setContent($content) {
$this->content = $content;
}
}
<?php
namespace SGalinski\SgMail\Domain\Repository;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.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!
***************************************************************/
/**
* Repository for the Template object
*/
class TemplateRepository extends AbstractRepository {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment