Exemplo n.º 1
0
 public function execute(array $files)
 {
     $object = new FileSystemComplexity($this->classMap);
     foreach ($files as $filename) {
         $result = $object->calculate($filename);
         $this->collection->get($filename)->setSystemComplexity($result);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }