Completed
Push — master ( 5e22c7...66609b )
by Lars
03:41
created

CollectionStringy   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A getAll() 0 4 1
A getGenerator() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stringy;
6
7
class CollectionStringy extends \Arrayy\Collection\AbstractCollection
8
{
9 1
    public function getType(): string
10
    {
11 1
        return Stringy::class;
12
    }
13
14
    /**
15
     * @return Stringy[]
16
     */
17
    public function getAll(): array
18
    {
19
        return parent::getAll();
20
    }
21
22
    /**
23
     * @return \Generator|Stringy[]
24
     */
25 1
    public function getGenerator(): \Generator
26
    {
27 1
        return parent::getGenerator();
28
    }
29
}
30