Completed
Push — dev ( 72cd7e...c5a23f )
by James Ekow Abaka
05:21
created

Generator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setup() 0 5 1
generate() 0 1 ?
1
<?php
2
namespace ntentan\honam\engines\php\helpers\feed;
3
4
abstract class Generator
5
{
6
    protected $properties;
7
    protected $items = array();
8
9
    public function setup($properties, $items)
10
    {
11
        $this->items = $items;
12
        $this->properties = $properties;
13
    }
14
15
    abstract public function generate();
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a @return doc comment to communicate to implementors of these methods what they are expected to return.

Loading history...
16
}