src/Composer/ComposerJson.php
private function setLink($type, $name, $constraint)
    {
        $this->set($type . '/' . $this->escape($name), $constraint);

        return $this;
    }
private function setLink($type, $name, $constraint)
    {
        $this->set($type . '/' . $this->escape($name), $constraint);

        return $this;
    }
private function setLink ( $ type , $ name , $ constraint ) { $ this -> set ( $ type . '/' . $ this -> escape ( $ name ) , $ constraint ) ; return $ this ; }
Set a link on a dependency to a constraint.

@param string $type       The link type (require, require-dev, provide, replace).

@param string $name       The package name.

@param string $constraint The version constraint.

@return ComposerJson
Set a link on a dependency to a constraint .