INITIAL_ANALYSIS_TARGET_ID
INITIAL_ANALYSIS_TARGET_ID
Class AnalysisResult
$requirements : array|array<mixed,\Pvra\Result\Reasoning>
$msgFormatter : \Pvra\Result\MessageFormatter
getRequiredVersionId() : integer
Calculate the id of the required version
Creates an integer representation of a version in the format "a.b[.c]". The third version element is optional and can be omitted. A default value of "0" will be assumed.
getMsgFormatter() : \Pvra\Result\MessageFormatter
Get the attached message formatter
If no message formatter has been set a default one will be created assuming default values.
setMsgFormatter(\Pvra\Result\MessageFormatter $formatter) : $this
\Pvra\Result\MessageFormatter | $formatter |
getRequiredVersion() : string
Retrieve the determined required version
This method calculates the highest required version of all known requirements. If no changes were made between the calls to this method the version requirement will not be recalculated.
The required version in the format Major.Minor[.Patch]
addArbitraryRequirement(string $version, integer $line = -1, string $msg = null, integer $reason = \Pvra\Result\Reason::UNKNOWN, array $data = array())
Add an arbitrary requirement identified by version
This method can be used to add an arbitrary requirement. All parameters but the first are optional
string | $version | The version in the format |
integer | $line | The line that caused the requirement. |
string | $msg | The message template that should be used. If
|
integer | $reason | The reason for this requirement. Please be aware: Setting this parameter will not
|
array | $data | Additional data that should be passed to the message formatter. |
addRequirement(integer $reason, integer $line = -1, string $msg = null, array $data = array())
Add a requirement identified by reason id
This method can be used to add a requirement that is identified by its reason id.
integer | $reason | The reason for this requirement. The required version is determined from this id. |
integer | $line | The line that caused the requirement. |
string | $msg | The message template that should be used. If
|
array | $data | Additional data that should be passed to the message formatter. |
Thrown if the reason is unknown or does not have a version requirement associated.
getRequirementInfo(string $version) : array|array<mixed,\Pvra\Result\Reasoning>
Get all reasonings related to a version
If no reasoning for a version is known an empty array will be returned.
string | $version | Version in the format |
List of Reasoning
or empty array
getIterator() : \ArrayIterator|array|array<mixed,\Pvra\Result\Reasoning>