Passed
Push — develop ( ff7e62...18f528 )
by Andrew
07:05 queued 10s
created

SeomaticArguments::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 13
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 17
rs 9.8333
1
<?php
2
/**
3
 * SEOmatic plugin for Craft CMS 3.x
4
 *
5
 * A turnkey SEO implementation for Craft CMS that is comprehensive, powerful,
6
 * and flexible
7
 *
8
 * @link      https://nystudio107.com
9
 * @copyright Copyright (c) 2019 nystudio107
10
 */
11
12
namespace nystudio107\seomatic\gql\arguments;
13
14
use craft\gql\base\Arguments;
15
use GraphQL\Type\Definition\Type;
16
17
/**
18
 * Class SeomaticArguments
19
 *
20
 * @author    nystudio107
0 ignored issues
show
Coding Style introduced by
The tag in position 1 should be the @package tag
Loading history...
Coding Style introduced by
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
21
 * @package   Seomatic
22
 * @since     3.2.8
0 ignored issues
show
Coding Style introduced by
The tag in position 3 should be the @author tag
Loading history...
23
 */
24
class SeomaticArguments 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 the SEOmatic metdata for.'
36
            ],
37
            'siteId' => [
38
                'name' => 'siteId',
39
                'type' => Type::int(),
40
                'description' => 'The siteId to resolve the SEOmatic metdata for.'
41
            ],
42
            'asArray' => [
43
                'name' => 'asArray',
44
                'type' => Type::boolean(),
45
                'description' => 'Whether the meta items should be returned as an array or as pre-rendered tag text.'
46
            ],
47
        ];
48
    }
49
}
50