Test Failed
Push — 2.0 ( 4d4d2f...3431b8 )
by Zaahid
04:28
created

ParserMessageProxy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A isMimeMessagePart() 0 4 2
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
namespace ZBateson\MailMimeParser\Parser\Proxy;
8
9
/**
10
 * Description of MimePartProxy
11
 *
12
 * @author Zaahid Bateson
13
 */
14
class ParserMessageProxy extends ParserMimePartProxy
15
{
16
    /**
17
     * Returns true if either a Content-Type or Mime-Version header are defined
18
     * in this PartBuilder's headers.
19
     *
20
     * @return boolean
21
     */
22
    public function isMimeMessagePart()
23
    {
24
        return ($this->headerContainer->exists('Content-Type') ||
25
            $this->headerContainer->exists('Mime-Version'));
26
    }
27
}
28