Completed
Push — master ( 52fe1b...6cfefd )
by Maciej
12:25
created

Post   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 4
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 21
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A findByIds() 0 8 2
A findOneById() 0 4 1
1
<?php
2
/**
3
 * Created by Maciej Paprocki for Bureau-VA.
4
 * Date: 17/02/2016
5
 * Project Name: MaciekPaprocki\WordpressGuzzle
6
 * Time: 12:17
7
 */
8
9
namespace BureauVa\WordpressGuzzle\Repository;
10
11
12
/**
13
 * Class Post
14
 * @package MaciekPaprocki\WordpressGuzzle
15
 */
16
17
class Post extends RepositoryAbstract
18
{
19
    /**
20
     * Post Repo constructor.
21
     */
22
    public function __construct()
23
    {
24
    }
25
    public function findByIds($id){
26
        if(is_numeric($id)){
27
            return $this->findOneById($id);
28
        }else{
29
            //TODO: implement actuall body of the function
30
            return null;
31
        }
32
    }
33
    public function findOneById($id){
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
34
        return null;
35
        //TODO: implement actuall body of the function
36
    }
37
}