Completed
Push — master ( ab9622...fc618d )
by Patrick
05:38
created

Route   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
route() 0 1 ?
1
<?php
2
/*
3
 * Router class
4
 *
5
 * This file describes the Abstract base class for all email routers
6
 *
7
 * PHP version 5 and 7
8
 *
9
 * @author Patrick Boyd / [email protected]
10
 * @copyright Copyright (c) 2016, Austin Artistic Reconstruction
11
 * @license http://www.apache.org/licenses/ Apache 2.0 License
12
 */
13
14
namespace Email\Route;
15
16
/**
17
 * An class to represent an Email Router
18
 */
19
abstract class Route
20
{
21
    protected $data;
22
23
    public function __construct($data = false)
24
    {
25
        $this->data = $data;
26
    }
27
28
    public abstract function route($destination, $message);
29
}
30
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
31
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
32