src/phpDocumentor/Plugin/Core/Transformer/Writer/Statistics.php
protected function getDeprecatedCounter(ProjectDescriptor $project)
    {
        $deprecatedCounter = 0;

        /** @var DescriptorAbstract $element */
        foreach ($project->getIndexes()->get('elements') as $element) {
            if ($element->isDeprecated()) {
                $deprecatedCounter += 1;
            }
        }

        return $deprecatedCounter;
    }
protected function getDeprecatedCounter(ProjectDescriptor $project)
    {
        $deprecatedCounter = 0;

        /** @var DescriptorAbstract $element */
        foreach ($project->getIndexes()->get('elements') as $element) {
            if ($element->isDeprecated()) {
                $deprecatedCounter += 1;
            }
        }

        return $deprecatedCounter;
    }
protected function getDeprecatedCounter ( ProjectDescriptor $ project ) { $ deprecatedCounter = 0 ; /** @var DescriptorAbstract $element */ foreach ( $ project -> getIndexes ( ) -> get ( 'elements' ) as $ element ) { if ( $ element -> isDeprecated ( ) ) { $ deprecatedCounter += 1 ; } } return $ deprecatedCounter ; }
Get number of deprecated elements.

@param ProjectDescriptor $project

@return int
Get number of deprecated elements .