src/Statistics/ComponentStatistics.php
public function toArray() : array
    {
        return [
            'component'         => $this->name,
            'number_of_classes' => $this->getNumberOfClasses(),
            'methods'           => $this->getNumberOfMethods(),
            'methods_per_class' => $this->getNumberOfMethodsPerClass(),
            'lines'             => $this->getLines(),
            'loc'               => $this->getLinesOfCode(),
            'loc_per_method'    => $this->getLinesOfCodePerMethod(),
        ];
    }
public function toArray() : array
    {
        return [
            'component'         => $this->name,
            'number_of_classes' => $this->getNumberOfClasses(),
            'methods'           => $this->getNumberOfMethods(),
            'methods_per_class' => $this->getNumberOfMethodsPerClass(),
            'lines'             => $this->getLines(),
            'loc'               => $this->getLinesOfCode(),
            'loc_per_method'    => $this->getLinesOfCodePerMethod(),
        ];
    }
public function toArray ( ) : array { return [ 'component' => $ this -> name , 'number_of_classes' => $ this -> getNumberOfClasses ( ) , 'methods' => $ this -> getNumberOfMethods ( ) , 'methods_per_class' => $ this -> getNumberOfMethodsPerClass ( ) , 'lines' => $ this -> getLines ( ) , 'loc' => $ this -> getLinesOfCode ( ) , 'loc_per_method' => $ this -> getLinesOfCodePerMethod ( ) , ] ; }
Generate Statistics Array for the given Component.

@return array
Generate Statistics Array for the given Component .