setRedirectionFormViewPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Shetabit\Multipay\Traits;
4
5
use Shetabit\Multipay\RedirectionForm;
6
7
trait InteractsWithRedirectionForm
8
{
9
    /**
10
     * Set view path of redirection form.
11
     *
12
     * @param string $path
13
     *
14
     * @return void
15
     */
16
    public static function setRedirectionFormViewPath(string $path)
17
    {
18
        RedirectionForm::setViewPath($path);
19
    }
20
21
    /**
22
     * Retrieve default view path of redirection form.
23
     *
24
     * @return string
25
     */
26
    public static function getRedirectionFormDefaultViewPath() : string
27
    {
28
        return RedirectionForm::getDefaultViewPath();
29
    }
30
31
    /**
32
     * Retrieve current view path of redirection form.
33
     *
34
     * @return string
35
     */
36
    public static function getRedirectionFormViewPath() : string
37
    {
38
        return RedirectionForm::getViewPath();
39
    }
40
41
    /**
42
     * Set view renderer
43
     *
44
     * @param callable $renderer
45
     */
46
    public static function setRedirectionFormViewRenderer(callable $renderer)
47
    {
48
        RedirectionForm::setViewRenderer($renderer);
49
    }
50
}
51