You are here

public function Runtime::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/environment/src/Runtime.php \SebastianBergmann\Environment\Runtime::getName()

Return value

string

1 call to Runtime::getName()
Runtime::getNameWithVersion in vendor/sebastian/environment/src/Runtime.php

File

vendor/sebastian/environment/src/Runtime.php, line 107

Class

Runtime
Utility class for HHVM/PHP environment handling.

Namespace

SebastianBergmann\Environment

Code

public function getName() {
  if ($this
    ->isHHVM()) {
    return 'HHVM';
  }
  elseif ($this
    ->isPHPDBG()) {
    return 'PHPDBG';
  }
  else {
    return 'PHP';
  }
}