Completed
Push — master ( 2b1674...071d4d )
by ARCANEDEV
05:46
created

PostPresenter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getShowUrl() 0 4 1
A getEditUrl() 0 4 1
1
<?php namespace Arcanesoft\Blog\Models\Presenters;
2
3
/**
4
 * Trait PostPresenter
5
 *
6
 * @package  Arcanesoft\Blog\Models\Presenters
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
trait PostPresenter
10
{
11
    // TODO: Add the accessors
12
13
    /* -----------------------------------------------------------------
14
     |  URL Accessors
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Get the show URL.
20
     *
21
     * @return string
22
     */
23
    public function getShowUrl()
24
    {
25
        return route('admin::blog.posts.show', $this);
26
    }
27
28
    /**
29
     * Get the edit URL.
30
     *
31
     * @return string
32
     */
33
    public function getEditUrl()
34
    {
35
        return route('admin::blog.posts.edit', $this);
36
    }
37
}
38