Issues (19)

src/Collections/ImageCollection.php (1 issue)

Labels
Severity
1
<?php
2
3
4
namespace Zenwalker\CommerceML\Collections;
5
6
7
use Zenwalker\CommerceML\Model\Image;
0 ignored issues
show
The type Zenwalker\CommerceML\Model\Image 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...
8
use Zenwalker\CommerceML\Model\Simple;
9
10
/**
11
 * Class Image
12
 *
13
 * @package Zenwalker\CommerceML\Model
14
 */
15
class ImageCollection extends Simple
16
{
17 1
    public function init()
18
    {
19 1
        if ($this->xml) {
20 1
            foreach ($this->xml as $image) {
21 1
                $this->append(new Image($this->owner, $image));
22
            }
23
        }
24 1
        parent::init();
25
    }
26
}