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 | * @var bool |
||
65 | */ |
||
66 | protected $alwaysUpdateParameters = false; |
||
67 | |||
68 | /** |
||
69 | * Default subject set on all template on initial creation |
||
70 | * |
||
71 | * @var string |
||
72 | */ |
||
73 | protected $defaultSubject = 'Subject has not yet been set'; |
||
74 | |||
75 | /** |
||
76 | * Default body set on all templates on initial creation |
||
77 | * |
||
78 | * @var string |
||
79 | */ |
||
80 | protected $defaultBody = 'This is the default message for the template with id: %s,locale: %s'; |
||
81 | |||
82 | /** |
||
83 | * Set predefined parameters that will exist in all templates |
||
84 | * |
||
85 | * @var array |
||
86 | */ |
||
87 | protected $predefinedParams = []; |
||
88 | |||
89 | /** |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function isAlwaysUpdateParameters(): bool |
||
96 | |||
97 | /** |
||
98 | * @param bool $alwaysUpdateParameters |
||
99 | */ |
||
100 | public function setAlwaysUpdateParameters(bool $alwaysUpdateParameters): void |
||
104 | |||
105 | /** |
||
106 | * @param string $defaultBody |
||
107 | */ |
||
108 | 1 | public function setDefaultBody(string $defaultBody): void |
|
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | 1 | public function getDefaultBody(): string |
|
120 | |||
121 | /** |
||
122 | * @param string $defaultSubject |
||
123 | */ |
||
124 | 1 | public function setDefaultSubject(string $defaultSubject): void |
|
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | 1 | public function getDefaultSubject(): string |
|
136 | |||
137 | /** |
||
138 | * @param string $engine |
||
139 | */ |
||
140 | 1 | public function setEngine(string $engine): void |
|
144 | |||
145 | /** |
||
146 | * @return string |
||
147 | */ |
||
148 | 1 | public function getEngine(): string |
|
152 | |||
153 | /** |
||
154 | * @param array $predefinedParams |
||
155 | */ |
||
156 | 1 | public function setPredefinedParams(array $predefinedParams): void |
|
160 | |||
161 | /** |
||
162 | * @return array |
||
163 | */ |
||
164 | 1 | public function getPredefinedParams(): array |
|
168 | } |
||
169 |