AttachmentCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A acceptsType() 0 4 1
1
<?php
2
3
namespace Crummy\Phlack\Message\Collection;
4
5
use Crummy\Phlack\Message\AttachmentInterface;
6
7
class AttachmentCollection extends EncodableCollection
8
{
9
    /**
10
     * @param $value
11
     *
12
     * @return bool
13
     */
14 10
    public function acceptsType($value)
15
    {
16 10
        return $value instanceof AttachmentInterface;
17
    }
18
}
19