SebastianBergmann\PHPLOC\Publisher::toArray PHP Method

toArray() public method

public toArray ( )
    public function toArray()
    {
        return ['files' => $this->getFiles(), 'loc' => $this->getLines(), 'lloc' => $this->getLogicalLines(), 'llocClasses' => $this->getClassLines(), 'llocFunctions' => $this->getFunctionLines(), 'llocGlobal' => $this->getNotInClassesOrFunctions(), 'cloc' => $this->getCommentLines(), 'ccn' => $this->getComplexity(), 'ccnMethods' => $this->getMethodComplexity(), 'interfaces' => $this->getInterfaces(), 'traits' => $this->getTraits(), 'classes' => $this->getClasses(), 'abstractClasses' => $this->getAbstractClasses(), 'concreteClasses' => $this->getConcreteClasses(), 'functions' => $this->getFunctions(), 'namedFunctions' => $this->getNamedFunctions(), 'anonymousFunctions' => $this->getAnonymousFunctions(), 'methods' => $this->getMethods(), 'publicMethods' => $this->getPublicMethods(), 'nonPublicMethods' => $this->getNonPublicMethods(), 'nonStaticMethods' => $this->getNonStaticMethods(), 'staticMethods' => $this->getStaticMethods(), 'constants' => $this->getConstants(), 'classConstants' => $this->getClassConstants(), 'globalConstants' => $this->getGlobalConstants(), 'testClasses' => $this->getTestClasses(), 'testMethods' => $this->getTestMethods(), 'ccnByLloc' => $this->getAverageComplexityPerLogicalLine(), 'llocByNof' => $this->getAverageFunctionLength(), 'methodCalls' => $this->getMethodCalls(), 'staticMethodCalls' => $this->getStaticMethodCalls(), 'instanceMethodCalls' => $this->getNonStaticMethodCalls(), 'attributeAccesses' => $this->getAttributeAccesses(), 'staticAttributeAccesses' => $this->getStaticAttributeAccesses(), 'instanceAttributeAccesses' => $this->getNonStaticAttributeAccesses(), 'globalAccesses' => $this->getGlobalAccesses(), 'globalVariableAccesses' => $this->getGlobalVariableAccesses(), 'superGlobalVariableAccesses' => $this->getSuperGlobalVariableAccesses(), 'globalConstantAccesses' => $this->getGlobalConstantAccesses(), 'directories' => $this->getDirectories(), 'classCcnMin' => $this->getMinimumClassComplexity(), 'classCcnAvg' => $this->getAverageComplexityPerClass(), 'classCcnMax' => $this->getMaximumClassComplexity(), 'classLlocMin' => $this->getMinimumClassLength(), 'classLlocAvg' => $this->getAverageClassLength(), 'classLlocMax' => $this->getMaximumClassLength(), 'methodCcnMin' => $this->getMinimumMethodComplexity(), 'methodCcnAvg' => $this->getAverageComplexityPerMethod(), 'methodCcnMax' => $this->getMaximumMethodComplexity(), 'methodLlocMin' => $this->getMinimumMethodLength(), 'methodLlocAvg' => $this->getAverageMethodLength(), 'methodLlocMax' => $this->getMaximumMethodLength(), 'namespaces' => $this->getNamespaces(), 'ncloc' => $this->getNonCommentLines()];
    }