From 33f00442f1667d57f94433834e0da4985670025b Mon Sep 17 00:00:00 2001 From: Fbenas Date: Mon, 7 May 2018 14:42:15 +0100 Subject: Get filtering working with output --- src/File/Handler.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/File/Handler.php') diff --git a/src/File/Handler.php b/src/File/Handler.php index 61c78a8..eecedc0 100644 --- a/src/File/Handler.php +++ b/src/File/Handler.php @@ -1,6 +1,6 @@ - * @param string $filename [description] + * @param string $filename string */ public function __construct(string $filename) { @@ -26,7 +25,8 @@ class Handler if (!is_readable($filename)) { throw new Exception('Cannot read from file: ' . $filename); } - $this->load; + + $this->load(); } /** @@ -40,17 +40,13 @@ class Handler } /** - * Parse file and return array + * Retun the raw file contents * * @author Phil Burton - * @return array + * @return string */ - public function getVendorArray(): array + public function getFileContents(): string { - if (!$this->array) { - $this->array = []; - } - - return $this->array; + return $this->file; } } -- cgit v1.2.3