protected function filterArrayByClassesInPackageNamespace(array $array, $packageKey)
    {
        return array_filter($array, function ($className) use ($packageKey) {
            return (isset($this->availableClassNames[$packageKey]) && in_array($className, $this->availableClassNames[$packageKey]));
        }, ARRAY_FILTER_USE_KEY);
    }
protected function filterArrayByClassesInPackageNamespace(array $array, $packageKey)
    {
        return array_filter($array, function ($className) use ($packageKey) {
            return (isset($this->availableClassNames[$packageKey]) && in_array($className, $this->availableClassNames[$packageKey]));
        }, ARRAY_FILTER_USE_KEY);
    }
protected function filterArrayByClassesInPackageNamespace ( array $ array , $ packageKey ) { return array_filter ( $ array , function ( $ className ) use ( $ packageKey ) { return ( isset ( $ this -> availableClassNames [ $ packageKey ] ) && in_array ( $ className , $ this -> availableClassNames [ $ packageKey ] ) ) ; } , ARRAY_FILTER_USE_KEY ) ; }
Filter an array of entries were keys are class names by being in the given package namespace.

@param array $array
@param string $packageKey
@return array
Filter an array of entries were keys are class names by being in the given package namespace .