Completed
Branch master (162e0f)
by Evan
02:29
created

PostLoader::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 6
rs 9.4285
1
<?php
2
3
namespace Silk\Post\Action;
4
5
use Silk\Database\Action;
6
7
class PostLoader extends Action
8
{
9
    public function execute()
10
    {
11
        $this->model->setObject(
12
            \WP_Post::get_instance($this->model->id)
13
        );
14
    }
15
}
16