forked from kzap/Eden-PHP-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactory.php
More file actions
64 lines (56 loc) · 1.14 KB
/
Factory.php
File metadata and controls
64 lines (56 loc) · 1.14 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php //-->
/*
* This file is part of the System package of the Eden PHP Library.
* (c) 2013-2014 Openovate Labs
*
* Copyright and license information can be found at LICENSE
* distributed with this package.
*/
namespace Eden\System;
/**
* Core Factory Class
*
* @vendor Eden
* @package System
* @author Christian Blanquera cblanquera@openovate.com
*/
class Factory extends Base
{
const INSTANCE = 1;
/**
* Returns the file class
*
* @param string
* @return Eden\System\File
*/
public function file($path)
{
//argument 1 must be a string
Argument::i()->test(1, 'string');
return File::i($path);
}
/**
* Returns the folder class
*
* @param string
* @return Eden\System\Folder
*/
public function folder($path)
{
//argument 1 must be a string
Argument::i()->test(1, 'string');
return Folder::i($path);
}
/**
* Returns the path class
*
* @param string
* @return Eden\System\Path
*/
public function path($path)
{
//argument 1 must be a string
Argument::i()->test(1, 'string');
return Path::i($path);
}
}