1 | <?php |
||
54 | class TemplateServiceOptions extends AbstractOptions |
||
55 | { |
||
56 | /** |
||
57 | * The name of the engine to use for rendering |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $engine = 'twig'; |
||
62 | |||
63 | /** |
||
64 | * Default subject set on all template on initial creation |
||
65 | * |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $defaultSubject = 'Subject has not yet been set'; |
||
69 | |||
70 | /** |
||
71 | * Default body set on all templates on initial creation |
||
72 | * |
||
73 | * @var string |
||
74 | */ |
||
75 | protected $defaultBody = 'This is the default message for the template with id: %s,locale: %s'; |
||
76 | |||
77 | /** |
||
78 | * Set predefined parameters that will exist in all templates |
||
79 | * |
||
80 | * @var array |
||
81 | */ |
||
82 | protected $predefinedParams = []; |
||
83 | |||
84 | /** |
||
85 | * @param string $defaultBody |
||
86 | */ |
||
87 | 1 | public function setDefaultBody($defaultBody) |
|
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | 1 | public function getDefaultBody() |
|
99 | |||
100 | /** |
||
101 | * @param string $defaultSubject |
||
102 | */ |
||
103 | 1 | public function setDefaultSubject($defaultSubject) |
|
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getDefaultSubject() |
|
115 | |||
116 | /** |
||
117 | * @param string $engine |
||
118 | */ |
||
119 | 1 | public function setEngine($engine) |
|
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | 1 | public function getEngine() |
|
131 | |||
132 | /** |
||
133 | * @param array $predefinedParams |
||
134 | */ |
||
135 | 1 | public function setPredefinedParams(array $predefinedParams) |
|
139 | |||
140 | /** |
||
141 | * @return array |
||
142 | */ |
||
143 | 1 | public function getPredefinedParams() |
|
147 | } |
||
148 |