Skip to content

Commit

Permalink
Fixed type
Browse files Browse the repository at this point in the history
  • Loading branch information
leoloso committed Apr 14, 2020
1 parent 87bfb0d commit 5c2c06d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Renderer/FileRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace PoP\FileStore\Renderer;

use PoP\FileStore\File\AbstractFile;
use PoP\FileStore\File\AbstractAccessibleRenderableFile;
use PoP\FileStore\File\AbstractRenderableFileFragment;
use PoP\FileStore\Store\FileStoreInterface;

Expand All @@ -17,7 +17,7 @@ public function __construct(FileStoreInterface $fileStore, string $separator = P
$this->fileStore = $fileStore;
$this->separator = $separator;
}
public function render(AbstractFile $file): string
public function render(AbstractAccessibleRenderableFile $file): string
{
// Render the content
$renderedFragments = array_map(function ($fragment) {
Expand All @@ -27,7 +27,7 @@ public function render(AbstractFile $file): string
return implode($this->separator, $renderedFragments);
}

public function renderAndSave(AbstractFile $file): void
public function renderAndSave(AbstractAccessibleRenderableFile $file): void
{
// Render and save the content
$contents = $this->render($file);
Expand Down
6 changes: 3 additions & 3 deletions src/Renderer/FileRendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace PoP\FileStore\Renderer;

use PoP\FileStore\File\AbstractFile;
use PoP\FileStore\File\AbstractAccessibleRenderableFile;

interface FileRendererInterface
{
public function render(AbstractFile $file): string;
public function renderAndSave(AbstractFile $file): void;
public function render(AbstractAccessibleRenderableFile $file): string;
public function renderAndSave(AbstractAccessibleRenderableFile $file): void;
}

0 comments on commit 5c2c06d

Please sign in to comment.