Test Failed
Push — master ( e258e4...a626ba )
by Zaahid
15:25
created

MimeTokenPartFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A newInstance() 0 3 1
1
<?php
2
/**
3
 * This file is part of the ZBateson\MailMimeParser project.
4
 *
5
 * @license http://opensource.org/licenses/bsd-license.php BSD
6
 */
7
8
namespace ZBateson\MailMimeParser\Header\Part;
9
10
use ZBateson\MailMimeParser\Header\IHeaderPart;
11
12
/**
13
 * Extends HeaderPartFactory to instantiate MimeTokens for its
14
 * newInstance method.
15
 *
16
 * @author Zaahid Bateson
17
 */
18
class MimeTokenPartFactory extends HeaderPartFactory
19
{
20
    /**
21
     * Creates and returns a MimeToken.
22
     */
23
    public function newInstance(string $value) : IHeaderPart
24
    {
25
        return $this->newMimeToken($value);
26
    }
27
}
28