| 1 | <?php  | 
            ||
| 21 | abstract class WebServer implements WebServerInterface  | 
            ||
| 22 | { | 
            ||
| 23 | /**  | 
            ||
| 24 | * the name of a webserver.  | 
            ||
| 25 | *  | 
            ||
| 26 | * @var string the name of a webserver  | 
            ||
| 27 | */  | 
            ||
| 28 | private $name;  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * the version of a webserver.  | 
            ||
| 32 | *  | 
            ||
| 33 | * @var string the version of a webserver  | 
            ||
| 34 | */  | 
            ||
| 35 | private $version;  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Constructor.  | 
            ||
| 39 | *  | 
            ||
| 40 | * @param string $name the name of a webserver  | 
            ||
| 41 | * @param string $version the version of a webserver  | 
            ||
| 42 | */  | 
            ||
| 43 | 5 | public function __construct($name, $version = '')  | 
            |
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * Get the name of a webserver.  | 
            ||
| 51 | *  | 
            ||
| 52 | * @return string the name of the webserver  | 
            ||
| 53 | */  | 
            ||
| 54 | 1 | public function getName()  | 
            |
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * Get the version of a webserver.  | 
            ||
| 61 | *  | 
            ||
| 62 | * @return string the version of the webserver  | 
            ||
| 63 | */  | 
            ||
| 64 | 1 | public function getVersion()  | 
            |
| 68 | }  | 
            ||
| 69 |