for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is, guess what, part of WebHelper.
*
* (c) James <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace JamesRezo\WebHelper\WebServer;
* Base class for webserver classes.
* name can be either apache, nginx, lighttpd, php or other webserver name
* @author james <[email protected]>
abstract class WebServer implements WebServerInterface
{
* the name of a webserver.
* @var string the name of a webserver
private $name;
* the version of a webserver.
* @var string the version of a webserver
private $version;
* Constructor.
* @param string $name the name of a webserver
* @param string $version the version of a webserver
public function __construct($name, $version = '')
$this->name = $name;
$this->version = $version;
}
* Get the name of a webserver.
* @return string the name of the webserver
public function getName()
return $this->name;
* Get the version of a webserver.
* @return string the version of the webserver
public function getVersion()
return $this->version;