This commit is contained in:
Dennis Eichhorn 2016-03-27 17:14:57 +02:00
parent 7769053826
commit 184e839899

View File

@ -71,12 +71,12 @@ class Directory extends FileAbstract implements \Iterator, \ArrayAccess
} }
} }
public function get(string $name) : FileInterface public function get(string $name) : FileAbstract
{ {
return $this->node[$name] ?? new NullFile(); return $this->node[$name] ?? new NullFile();
} }
public function add(FileInterface $file) public function add(FileAbstract $file)
{ {
$this->count += $file->getCount(); $this->count += $file->getCount();
$this->size += $file->getSize(); $this->size += $file->getSize();