Skip to content

Commit f358854

Browse files
committed
Docblocks for Flysystem\Cache\Noop and Directory handler
1 parent aced223 commit f358854

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

src/Flysystem/Cache/Noop.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,88 +4,142 @@
44

55
class Noop extends AbstractCache
66
{
7+
/**
8+
* {@inheritdoc}
9+
*/
710
protected $autosave = false;
811

12+
/**
13+
* {@inheritdoc}
14+
*/
915
public function updateObject($path, array $object, $autosave = false)
1016
{
1117
return $object;
1218
}
1319

20+
/**
21+
* {@inheritdoc}
22+
*/
1423
public function isComplete($dirname, $recursive)
1524
{
1625
return false;
1726
}
1827

28+
/**
29+
* {@inheritdoc}
30+
*/
1931
public function setComplete($dirname, $recursive)
2032
{
2133

2234
}
2335

36+
/**
37+
* {@inheritdoc}
38+
*/
2439
public function storeContents($directory, array $contents, $recursive)
2540
{
2641
return $contents;
2742
}
2843

44+
/**
45+
* {@inheritdoc}
46+
*/
2947
public function flush()
3048
{
3149

3250
}
3351

52+
/**
53+
* {@inheritdoc}
54+
*/
3455
public function autosave()
3556
{
3657

3758
}
3859

60+
/**
61+
* {@inheritdoc}
62+
*/
3963
public function save()
4064
{
4165

4266
}
4367

68+
/**
69+
* {@inheritdoc}
70+
*/
4471
public function load()
4572
{
4673

4774
}
4875

76+
/**
77+
* {@inheritdoc}
78+
*/
4979
public function has($path)
5080
{
5181
return null;
5282
}
5383

84+
/**
85+
* {@inheritdoc}
86+
*/
5487
public function read($path)
5588
{
5689
return false;
5790
}
5891

92+
/**
93+
* {@inheritdoc}
94+
*/
5995
public function listContents($directory = '', $recursive = false)
6096
{
6197
return false;
6298
}
6399

100+
/**
101+
* {@inheritdoc}
102+
*/
64103
public function getMetadata($path)
65104
{
66105
return false;
67106
}
68107

108+
/**
109+
* {@inheritdoc}
110+
*/
69111
public function getSize($path)
70112
{
71113
return false;
72114
}
73115

116+
/**
117+
* {@inheritdoc}
118+
*/
74119
public function getMimetype($path)
75120
{
76121
return false;
77122
}
78123

124+
/**
125+
* {@inheritdoc}
126+
*/
79127
public function getTimestamp($path)
80128
{
81129
return false;
82130
}
83131

132+
/**
133+
* {@inheritdoc}
134+
*/
84135
public function getVisibility($path)
85136
{
86137
return false;
87138
}
88139

140+
/**
141+
* {@inheritdoc}
142+
*/
89143
public function ensureParentDirectories($path)
90144
{
91145
return false;

src/Flysystem/Directory.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@
44

55
class Directory extends Handler
66
{
7+
/**
8+
* Delete the directory
9+
*
10+
* @return void
11+
*/
712
public function delete()
813
{
914
$this->filesystem->deleteDir($this->path);
1015
}
1116

17+
/**
18+
* List the directory contents
19+
*
20+
* @param boolean $recursive
21+
* @return array|boolean directort contents or false
22+
*/
1223
public function getContents($recursive = false)
1324
{
1425
return $this->filesystem->listContents($this->path, $recursive);

0 commit comments

Comments
 (0)