Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WP Mail
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
WP Mail
Merge requests
!4
Refactor/templates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor/templates
refactor/templates
into
devel
Overview
0
Commits
3
Pipelines
1
Changes
5
Merged
Piotr Potrebka
requested to merge
refactor/templates
into
devel
8 months ago
Overview
0
Commits
3
Pipelines
1
Changes
5
Expand
👍
0
👎
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
4c9c4b8b
3 commits,
8 months ago
5 files
+
68
−
58
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
src/Abstracts/Email.php
+
11
−
2
Options
@@ -106,7 +106,7 @@ class Email {
*
* @return self
*/
public
function
set_recipients
(
array
$recipients
=
[]
):
self
{
public
function
set_recipients
(
array
$recipients
):
self
{
$this
->
recipients
=
$recipients
;
return
$this
;
@@ -164,7 +164,7 @@ class Email {
/**
* @return string
*/
public
function
set_content_type
(
$type
=
'html'
):
self
{
public
function
set_content_type
(
$type
):
self
{
switch
(
$type
)
{
case
'plain'
:
$content_type
=
'text/plain'
;
@@ -200,12 +200,21 @@ class Email {
return
$this
->
content
;
}
/**
* @param string $name
* @param string $value
*
* @return $this
*/
public
function
set_template_attributes
(
string
$name
,
string
$value
):
self
{
$this
->
template_attributes
[
$name
]
=
$value
;
return
$this
;
}
/**
* @return array
*/
public
function
get_template_attributes
():
array
{
return
$this
->
template_attributes
;
}
Loading