src/Plugin.php
private function getFilesAndReflectionClassesFromPackage(PackageInterface $package)
    {
        $cache_id = $package->getName();

        if (isset($this->metadata[$cache_id])) {
            return $this->metadata[$cache_id];
        }

        $this->metadata[$cache_id] = [];
        foreach ($this->getFilesForPackage($package) as $filename) {
            $filename = (string) $filename;
            if (isset($this->metadata[$cache_id][$filename])) {
                continue;
            }

            $this->metadata[$cache_id][$filename] = new ReflectionClass($filename);
        }

        return $this->metadata[$package->getName()];
    }
private function getFilesAndReflectionClassesFromPackage(PackageInterface $package)
    {
        $cache_id = $package->getName();

        if (isset($this->metadata[$cache_id])) {
            return $this->metadata[$cache_id];
        }

        $this->metadata[$cache_id] = [];
        foreach ($this->getFilesForPackage($package) as $filename) {
            $filename = (string) $filename;
            if (isset($this->metadata[$cache_id][$filename])) {
                continue;
            }

            $this->metadata[$cache_id][$filename] = new ReflectionClass($filename);
        }

        return $this->metadata[$package->getName()];
    }
private function getFilesAndReflectionClassesFromPackage ( PackageInterface $ package ) { $ cache_id = $ package -> getName ( ) ; if ( isset ( $ this -> metadata [ $ cache_id ] ) ) { return $ this -> metadata [ $ cache_id ] ; } $ this -> metadata [ $ cache_id ] = [ ] ; foreach ( $ this -> getFilesForPackage ( $ package ) as $ filename ) { $ filename = ( string ) $ filename ; if ( isset ( $ this -> metadata [ $ cache_id ] [ $ filename ] ) ) { continue ; } $ this -> metadata [ $ cache_id ] [ $ filename ] = new ReflectionClass ( $ filename ) ; } return $ this -> metadata [ $ package -> getName ( ) ] ; }
Returns a key-value array of ReflectionClass instances for all the file names found in the given package.
This method returns a cached instance when executed more than once for the same package.

@param PackageInterface $package
@return mixed
@throws Reflection\Exception\FileException
Returns a key - value array of ReflectionClass instances for all the file names found in the given package . This method returns a cached instance when executed more than once for the same package .