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

PostPresenter::getEditUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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