Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WP Mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
WP Mail
Merge requests
!5
Devel
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Devel
devel
into
main
Overview
0
Commits
6
Pipelines
1
Changes
4
Merged
Piotr Potrebka
requested to merge
devel
into
main
8 months ago
Overview
0
Commits
6
Pipelines
1
Changes
4
0
0
Merge request reports
Viewing commit
b537f22a
Prev
Next
Show latest version
4 files
+
57
−
47
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
b537f22a
feat: refactor
· b537f22a
Piotr Potrebka
authored
10 months ago
src/Abstracts/Email.php
+
10
−
1
View file @ b537f22a
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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