Pantheon\Terminus\Config::getPhpBinary PHP Method

getPhpBinary() private method

Returns location of PHP with which to run Terminus
private getPhpBinary ( ) : string
return string
    private function getPhpBinary()
    {
        if (isset($this->config['php'])) {
            return $this->config['php'];
        }
        if (getenv('TERMINUS_PHP')) {
            $php_bin = getenv('TERMINUS_PHP');
        } elseif (defined('PHP_BINARY')) {
            $php_bin = PHP_BINARY;
        } else {
            $php_bin = 'php';
        }
        return $php_bin;
    }