Issues (257)

src/events/IncludeSitemapEntryEvent.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * SEOmatic plugin for Craft CMS
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) 2017 nystudio107
10
 */
11
12
namespace nystudio107\seomatic\events;
13
14
use craft\base\ElementInterface;
0 ignored issues
show
The type craft\base\ElementInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
use nystudio107\seomatic\models\MetaBundle;
16
use yii\base\Event;
17
18
/**
19
 * @author    nystudio107
20
 * @package   Seomatic
21
 * @since     4.0.37
22
 */
23
class IncludeSitemapEntryEvent extends Event
24
{
25
    // Properties
26
    // =========================================================================
27
28
    /**
29
     * @var ElementInterface The Craft element corresponding to the sitemap entry
30
     */
31
    public $element;
32
33
    /**
34
     * @var MetaBundle The SEOmatic MetaBundle corresponding to the sitemap entry
35
     */
36
    public $metaBundle;
37
38
    /**
39
     * @var bool Whether to include the sitemap entry.
40
     */
41
    public $include;
42
}
43