You are here

public function PHP_CodeCoverage_Report_Node::getClassesAndTraits in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node.php \PHP_CodeCoverage_Report_Node::getClassesAndTraits()

Returns the classes and traits of this node.

@since Method available since Release 1.2.0

Return value

array

File

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

Class

PHP_CodeCoverage_Report_Node
Base class for nodes in the code coverage information tree.

Code

public function getClassesAndTraits() {
  return array_merge($this
    ->getClasses(), $this
    ->getTraits());
}