X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fmikey179%2FvfsStream%2Fsrc%2Fmain%2Fphp%2Forg%2Fbovigo%2Fvfs%2Fvisitor%2FvfsStreamAbstractVisitor.php;fp=vendor%2Fmikey179%2FvfsStream%2Fsrc%2Fmain%2Fphp%2Forg%2Fbovigo%2Fvfs%2Fvisitor%2FvfsStreamAbstractVisitor.php;h=f9e597b91b4c172fdc7a3f9b1a9cbf2795014611;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitor.php b/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitor.php new file mode 100644 index 000000000..f9e597b91 --- /dev/null +++ b/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitor.php @@ -0,0 +1,64 @@ +getType()) { + case vfsStreamContent::TYPE_BLOCK: + $this->visitBlockDevice($content); + break; + + case vfsStreamContent::TYPE_FILE: + $this->visitFile($content); + break; + + case vfsStreamContent::TYPE_DIR: + if (!$content->isDot()) { + $this->visitDirectory($content); + } + + break; + + default: + throw new \InvalidArgumentException('Unknown content type ' . $content->getType() . ' for ' . $content->getName()); + } + + return $this; + } + + /** + * visit a block device and process it + * + * @param vfsStreamBlock $block + * @return vfsStreamVisitor + */ + public function visitBlockDevice(vfsStreamBlock $block) + { + return $this->visitFile($block); + } +}