public function getVersionOfDependencyRequiredByPackage($package_slug, $dependency_slug)
    {
        $dependencies = $this->getInstalledPackage($package_slug)->dependencies;
        foreach ($dependencies as $dependency) {
            if (isset($dependency[$dependency_slug])) {
                return $dependency[$dependency_slug];
            }
        }

        return null;
    }
public function getVersionOfDependencyRequiredByPackage($package_slug, $dependency_slug)
    {
        $dependencies = $this->getInstalledPackage($package_slug)->dependencies;
        foreach ($dependencies as $dependency) {
            if (isset($dependency[$dependency_slug])) {
                return $dependency[$dependency_slug];
            }
        }

        return null;
    }
public function getVersionOfDependencyRequiredByPackage ( $ package_slug , $ dependency_slug ) { $ dependencies = $ this -> getInstalledPackage ( $ package_slug ) -> dependencies ; foreach ( $ dependencies as $ dependency ) { if ( isset ( $ dependency [ $ dependency_slug ] ) ) { return $ dependency [ $ dependency_slug ] ; } } return null ; }
Get the required version of a dependency of a package

@param string $package_slug
@param string $dependency_slug

@return mixed
Get the required version of a dependency of a package