1 | <?php |
||
19 | class DirectoryResource implements ResourceInterface |
||
20 | { |
||
21 | protected $resource; |
||
22 | protected $configuration; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param string $resource The file path to the resource |
||
28 | * @param ConfigurationInterface $configuration |
||
29 | */ |
||
30 | 5 | public function __construct($resource, ConfigurationInterface $configuration = null) |
|
35 | |||
36 | /** |
||
37 | * Gets configuration. |
||
38 | * |
||
39 | * @return ConfigurationInterface |
||
40 | */ |
||
41 | 4 | public function getConfiguration() |
|
45 | |||
46 | /** |
||
47 | * Sets configuration. |
||
48 | * |
||
49 | * @param ConfigurationInterface $configuration |
||
50 | * |
||
51 | * @return DirectoryResource |
||
52 | */ |
||
53 | 1 | public function setConfiguration(ConfigurationInterface $configuration) |
|
59 | |||
60 | /** |
||
61 | * Returns the resource tied to this Resource. |
||
62 | * |
||
63 | * @return mixed The resource |
||
64 | */ |
||
65 | 10 | public function getResource() |
|
69 | |||
70 | /** |
||
71 | * Sets the resource. |
||
72 | * |
||
73 | * @param string $resource |
||
74 | * |
||
75 | * @return DirectoryResource |
||
76 | */ |
||
77 | 1 | public function setResource($resource) |
|
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | 8 | public function exists() |
|
91 | } |
||
92 |