Passed
Push — v3 ( 5fb596...084ffb )
by Andrew
24:11 queued 12:16
created

src/gql/queries/SeomaticQuery.php (4 issues)

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\queries;
13
14
use nystudio107\seomatic\gql\arguments\SeomaticArguments;
15
use nystudio107\seomatic\gql\interfaces\SeomaticInterface;
16
use nystudio107\seomatic\gql\resolvers\SeomaticResolver;
17
18
use craft\gql\base\Query;
19
20
/**
21
 * Class SeomaticQuery
22
 *
23
 * @author    nystudio107
0 ignored issues
show
The tag in position 1 should be the @package tag
Loading history...
Content of the @author tag must be in the form "Display Name <[email protected]>"
Loading history...
24
 * @package   Seomatic
25
 * @since     3.2.8
0 ignored issues
show
The tag in position 3 should be the @author tag
Loading history...
26
 */
27
class SeomaticQuery extends Query
28
{
29
    /**
0 ignored issues
show
Parameter $checkToken should have a doc-comment as per coding-style.
Loading history...
30
     * @inheritdoc
31
     */
32
    public static function getQueries($checkToken = true): array
33
    {
34
        return [
35
            'seomatic' => [
36
                'type' => SeomaticInterface::getType(),
37
                'args' => SeomaticArguments::getArguments(),
38
                'resolve' => SeomaticResolver::class . '::resolve',
39
                'description' => 'This query is used to query for SEOmatic meta data.'
40
            ],
41
        ];
42
    }
43
}
44