Dependency constructor.
string $name: The name of the dependency.
string $project: The project namespace for the dependency.
string $constraint: The constraint string. For example, '>8.x-1.1'.
public function __construct($name, $project, $constraint) { $this->name = $name; $this->project = $project; $this->constraintString = $constraint; }