Completed
Pull Request — master (#47)
by Rick
03:35
created

TraversableCustomType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIterator() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace unreal4u\TelegramAPI\Abstracts;
6
7
/**
8
 * Class TraversableType
9
 * @package unreal4u\TelegramAPI\Abstracts
10
 */
11
abstract class TraversableCustomType extends CustomType implements \IteratorAggregate
12
{
13 3
    public function getIterator(): \Traversable
14
    {
15 3
        return new \ArrayIterator($this->data);
16
    }
17
}