blob: 6e88783e2709f8f0e63c6a6cf8a369dc3f7cd484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
namespace andreskrey\Readability;
final class Environment
{
/**
* @var Configuration
*/
protected $config;
public function __construct(array $config = [])
{
$this->config = new Configuration($config);
}
/**
* @return Configuration
*/
public function getConfig()
{
return $this->config;
}
/**
* @param array $config
*
* @return Environment
*/
public static function createDefaultEnvironment(array $config = [])
{
$environment = new static($config);
return $environment;
}
}
|