Add template to SceneBasics

This commit is contained in:
Austen McDonald
2016-07-30 10:34:22 +00:00
parent faff76c1d5
commit 5c7040d593
3 changed files with 37 additions and 8 deletions
+25 -5
View File
@@ -12,7 +12,9 @@ trait SceneBasics
private $title = "{No scene set}";
/** @Column(type="text") */
private $description = "{No scene set}";
/** @Column(type="string", length=255) */
private $template = "{No template set}";
/**
* Sets scene title
* @param string $title
@@ -21,7 +23,7 @@ trait SceneBasics
{
$this->title = $title;
}
/**
* Returns scene title
* @return string
@@ -30,7 +32,7 @@ trait SceneBasics
{
return $this->title;
}
/**
* Sets scene description
* @param string $description
@@ -39,7 +41,7 @@ trait SceneBasics
{
$this->description = $description;
}
/**
* Returns scene description
* @return string
@@ -48,4 +50,22 @@ trait SceneBasics
{
return $this->description;
}
}
/**
* Sets scene template
* @param string $template
*/
public function setTemplate(string $template)
{
$this->template = $template;
}
/**
* Returns scene template
* @return string
*/
public function getTemplate(): string
{
return $this->template;
}
}