1 | <?php |
||
19 | class SaveAreaBuilder |
||
20 | { |
||
21 | const TEMP_DIRECTORY_PREFIX = 'yahoo_japan_config_cache_'; |
||
22 | |||
23 | protected $env; |
||
24 | protected $filesystem; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param string $env |
||
30 | * @param Filesystem $filesystem |
||
31 | */ |
||
32 | 27 | public function __construct($env, Filesystem $filesystem) |
|
37 | |||
38 | /** |
||
39 | * Builds a temporary directory and returns. |
||
40 | * |
||
41 | * @param string $directory |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 9 | public function build($directory) |
|
52 | |||
53 | /** |
||
54 | * Builds a temporary directory prefix. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 17 | public function buildPrefix() |
|
62 | } |
||
63 |