コード例 #1
0
 private function findTargetClassCandidates($annotationName, $targetPackageNames)
 {
     $targets = Customweb_Annotation_Cache_Reader::getTargetsByAnnotationName($annotationName);
     if (is_array($targetPackageNames) && count($targetPackageNames) > 0) {
         $candidates = array();
         foreach ($targets as $target) {
             foreach ($targetPackageNames as $packageName) {
                 if ($this->isMatching($target, $packageName)) {
                     $candidates[] = $target;
                 }
             }
         }
         return $candidates;
     } else {
         return $targets;
     }
 }