You are here

public function PHP_CodeCoverage_Report_Node_File::getNumTraits in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php \PHP_CodeCoverage_Report_Node_File::getNumTraits()

Returns the number of traits.

Return value

int

Overrides PHP_CodeCoverage_Report_Node::getNumTraits

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php, line 241

Class

PHP_CodeCoverage_Report_Node_File
Represents a file in the code coverage information tree.

Code

public function getNumTraits() {
  return count($this->traits);
}