\Composer\DependencyResolverProblem

Represents a problem detected while solving dependencies

Summary

Methods
Properties
Constants
__construct()
addRule()
getReasons()
getPrettyString()
nextSection()
No public properties found
No constants found
addReason()
jobToText()
getPackageList()
constraintToText()
$reasonSeen
$reasons
$section
$pool
N/A
No private methods found
No private properties found
N/A

Properties

$reasonSeen

$reasonSeen : array

A map containing the id of each rule part of this problem as a key

Type

array

$reasons

$reasons : array

A set of reasons for the problem, each is a rule or a job and a rule

Type

array

$section

$section : 

Type

$pool

$pool : 

Type

Methods

addRule()

addRule(\Composer\DependencyResolver\Rule  $rule) 

Add a rule as a reason

Parameters

\Composer\DependencyResolver\Rule $rule

A rule which is a reason for this problem

getReasons()

getReasons() : array

Retrieve all reasons for this problem

Returns

array —

The problem's reasons

getPrettyString()

getPrettyString(array  $installedMap = array()) : string

A human readable textual representation of the problem's reasons

Parameters

array $installedMap

A map of all installed packages

Returns

string

nextSection()

nextSection() 

addReason()

addReason(string  $id, string  $reason) 

Store a reason descriptor but ignore duplicates

Parameters

string $id

A canonical identifier for the reason

string $reason

The reason descriptor

jobToText()

jobToText(array  $job) : string

Turns a job into a human readable description

Parameters

array $job

Returns

string

getPackageList()

getPackageList(  $packages) 

Parameters

$packages

constraintToText()

constraintToText(\Composer\Semver\Constraint\ConstraintInterface  $constraint) : string

Turns a constraint into text usable in a sentence describing a job

Parameters

\Composer\Semver\Constraint\ConstraintInterface $constraint

Returns

string