public function execute(array $files)
 {
     $object = new FileSystemComplexity($this->classMap);
     foreach ($files as $filename) {
         $result = $object->calculate($filename);
         $this->collection->get($filename)->setSystemComplexity($result);
     }
 }
示例#2
0
 public function execute(array $files)
 {
     $fileCoupling = new FileLackOfCohesionOfMethods($this->classMap);
     foreach ($files as $filename) {
         $result = $fileCoupling->calculate($filename);
         $this->collection->get($filename)->setLcom($result);
     }
 }
示例#3
0
 public function execute(array $files)
 {
     $coupling = new Coupling();
     $couplingMap = $coupling->calculate($this->classMap);
     // link between coupling and files
     $fileCoupling = new FileCoupling($this->classMap, $couplingMap);
     foreach ($files as $filename) {
         $rCoupling = $fileCoupling->calculate($filename);
         $this->collection->get($filename)->setCoupling($rCoupling);
     }
 }