public function execute(array $files) { $object = new FileSystemComplexity($this->classMap); foreach ($files as $filename) { $result = $object->calculate($filename); $this->collection->get($filename)->setSystemComplexity($result); } }
public function execute(array $files) { $fileCoupling = new FileLackOfCohesionOfMethods($this->classMap); foreach ($files as $filename) { $result = $fileCoupling->calculate($filename); $this->collection->get($filename)->setLcom($result); } }
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); } }