protected getContentOfType ( string $path, integer $type ) : org\bovigo\vfs\vfsStreamContent | ||
$path | string | |
$type | integer | |
return | org\bovigo\vfs\vfsStreamContent |
protected function getContentOfType($path, $type)
{
$content = $this->getContent($path);
if (null !== $content && $content->getType() === $type) {
return $content;
}
return null;
}