SourceCollection

FinalYes

A collection of sources (sic!).

Internal

This implementation still might be adjusted

Table of Contents

Properties

$sources  : array<int, SourceInterface>

Methods

__construct()  : mixed
contains()  : bool
Determines whether all sources are contained (in terms of instances and values, but without inference).
containsTypes()  : bool
Determines whether at least one type matches.
covers()  : bool
Determines whether all sources are covered (in terms of CSP inference, considering wildcards and similar).
exclude()  : self
isEmpty()  : bool
merge()  : self
with()  : self
without()  : self
withoutTypes()  : self

Properties

Methods

contains()

Determines whether all sources are contained (in terms of instances and values, but without inference).

public contains(SourceInterface ...$subjects) : bool
Parameters
$subjects : SourceInterface
Return values
bool

containsTypes()

Determines whether at least one type matches.

public containsTypes(class-string ...$subjectTypes) : bool
Parameters
$subjectTypes : class-string
Return values
bool

covers()

Determines whether all sources are covered (in terms of CSP inference, considering wildcards and similar).

public covers(SourceInterface ...$subjects) : bool
Parameters
$subjects : SourceInterface
Return values
bool

exclude()

public exclude(self $other) : self
Parameters
$other : self
Return values
self

isEmpty()

public isEmpty() : bool
Return values
bool

merge()

public merge(self $other) : self
Parameters
$other : self
Return values
self

withoutTypes()

public withoutTypes(class-string ...$subjectTypes) : self
Parameters
$subjectTypes : class-string
Return values
self

        
On this page

Search results