original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get the required version of a dependency of a package
  
  @param string $package_slug
  @param string $dependency_slug
  
  @return mixed
docstring_tokens: Get the required version of a dependency of a package