Completed
Push — master ( 260ab3...9036df )
by Nicolaas
03:28
created

Ecommerce_Dummy_Mailer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sendPlain() 0 4 1
A sendHTML() 0 4 1
1
<?php
2
3
4
5
class Ecommerce_Dummy_Mailer extends mailer
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
{
7
    /**
8
     * FAKE Send a plain-text email.
9
     *
10
     * @return bool
11
     */
12
    public function sendPlain($to, $from, $subject, $plainContent, $attachedFiles = false, $customheaders = false)
13
    {
14
        return true;
15
    }
16
17
    /**
18
     * FAKE Send a multi-part HTML email.
19
     *
20
     * @return bool
21
     */
22
    public function sendHTML($to, $from, $subject, $htmlContent, $attachedFiles = false, $customheaders = false, $plainContent = false)
23
    {
24
        return true;
25
    }
26
}
27