mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-30 18:39:38 +02:00
35 lines
479 B
PHP
35 lines
479 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\DependencyInjection;
|
|
|
|
/**
|
|
* class Configuration
|
|
*/
|
|
class Configuration
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $host;
|
|
|
|
/**
|
|
* @param string $host
|
|
*
|
|
* @return Configuration
|
|
*/
|
|
public function setHost($host)
|
|
{
|
|
$this->host = $host;
|
|
|
|
return $this; // for a fluent interface
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getHost()
|
|
{
|
|
return $this->host;
|
|
}
|
|
}
|