pgb_liv\php_ms\Search\Parameters\MascotSearchParameters::setInstrument

Signature

public function setInstrument( $instrument )

Parameters

$instrument

Test Coverage

Information

  • Coverage: 20/20 Lines (100%)
  • Tests: 2
  • Passed: 2 (100%)

Tests

  • [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchParametersTest::testCanGetSetValidInstrument
  • [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchParametersTest::testCanGetSetInvalidInstrument

Violations

PHPMessDetector

Line Rule Message
295 - 317 CyclomaticComplexity The method setInstrument() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.