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

Post::findOneById()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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
}