Passed
Push — v3 ( 3d31db...9e8c74 )
by Andrew
29:00 queued 05:41
created

RetourArguments::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 12
rs 9.9666
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Retour plugin for Craft CMS 3.x
4
 *
5
 * Retour allows you to intelligently redirect legacy URLs, so that you don't
6
 * lose SEO value when rebuilding & restructuring a website
7
 *
8
 * @link      https://nystudio107.com/
9
 * @copyright Copyright (c) 2019 nystudio107
10
 */
11
12
namespace nystudio107\retour\gql\arguments;
13
14
use craft\gql\base\Arguments;
15
use GraphQL\Type\Definition\Type;
16
17
/**
18
 * Class RetourArguments
19
 *
20
 * @author    nystudio107
21
 * @package   Retour
22
 * @since     3.1.26
23
 */
24
class RetourArguments extends Arguments
25
{
26
    /**
27
     * @inheritdoc
28
     */
29
    public static function getArguments(): array
30
    {
31
        return [
32
            'uri' => [
33
                'name' => 'uri',
34
                'type' => Type::string(),
35
                'description' => 'The URI to resolve a redirect for.'
36
            ],
37
            'siteId' => [
38
                'name' => 'siteId',
39
                'type' => Type::int(),
40
                'description' => 'The siteId to resolve a redirect for.'
41
            ],
42
        ];
43
    }
44
}
45