| 1 | <?php |
||
| 16 | class ConfigurationFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var \Ivory\HttpAdapter\ConfigurationInterface |
||
| 20 | */ |
||
| 21 | protected $configuration; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new configuration factory instance. |
||
| 25 | * |
||
| 26 | * @param Configuration $configuration |
||
| 27 | */ |
||
| 28 | public function __construct(Configuration $configuration) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Make a new configuration instance. |
||
| 35 | * |
||
| 36 | * @param array $config |
||
| 37 | * |
||
| 38 | * @return \Ivory\HttpAdapter\ConfigurationInterface |
||
| 39 | */ |
||
| 40 | public function create(array $config) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Gets a method name. |
||
| 51 | * |
||
| 52 | * @param string $property |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | protected function getMethod($property) |
||
| 60 | } |
||
| 61 |