Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Coveralls
  • JsonFile
  • Metrics
  • SourceFile
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Metrics

Metrics.

Namespace: Contrib\Bundle\CoverallsV1Bundle\Entity
Author: Kitamura Satoshi <with.no.parachute@gmail.com>
Located at Contrib/Bundle/CoverallsV1Bundle/Entity/Metrics.php
Methods summary
public
# __construct( array $coverage = array() )

Constructor.

Constructor.

Parameters

$coverage
array
$coverage Coverage data.
public
# merge( Contrib\Bundle\CoverallsV1Bundle\Entity\Metrics $that )

Merge other metrics.

Merge other metrics.

Parameters

$that
Contrib\Bundle\CoverallsV1Bundle\Entity\Metrics
$that
protected float
# calculateLineCoverage( integer $statements, integer $coveredStatements )

Calculate line coverage.

Calculate line coverage.

Parameters

$statements
integer
$statements Number of statements.
$coveredStatements
integer
$coveredStatements Number of covered statements.

Returns

float
public boolean
# hasStatements( )

Return whether the source file has executable statements.

Return whether the source file has executable statements.

Returns

boolean
public integer
# getStatements( )

Return number of statements.

Return number of statements.

Returns

integer
public integer
# getCoveredStatements( )

Return number of covered statements.

Return number of covered statements.

Returns

integer
public float
# getLineCoverage( )

Return line coverage.

Return line coverage.

Returns

float
Properties summary
protected integer $statements
#

Number of statements.

Number of statements.

protected integer $coveredStatements
#

Number of covered statements.

Number of covered statements.

protected float $lineCoverage
#

Line coverage.

Line coverage.

php-coveralls API documentation generated by ApiGen 2.8.0