Issues (38)

src/ResultFacade/Subject.php (1 issue)

Labels
Severity
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace ModernTimeline\ResultFacade;
6
7
use SMW\DIWikiPage;
0 ignored issues
show
The type SMW\DIWikiPage 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
9
/**
10
 * Data from a single subject (page or subobject)
11
 */
12
class Subject {
13
14
	private PropertyValueCollections $propertyValueCollections;
15
16
	/**
17
	 * @param DIWikiPage $wikiPage
18
	 * @param PropertyValueCollection[] $propertyValueCollections
19
	 */
20
	public function __construct(
21 3
		private DIWikiPage $wikiPage,
22 3
		array $propertyValueCollections
23 3
	) {
24 3
		$this->propertyValueCollections = new PropertyValueCollections( $propertyValueCollections );
25
	}
26 3
27 3
	public function getWikiPage(): DIWikiPage {
28
		return $this->wikiPage;
29
	}
30
31
	public function getPropertyValueCollections(): PropertyValueCollections {
32
		return $this->propertyValueCollections;
33 3
	}
34 3
35
}
36