Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/CsvFileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
*/
class CsvFileHandler
{
/** @var String */
/** @var string */
protected $filename;

/** @var Array */
/** @var array */
protected $records;

/** @var Boolean */
/** @var boolean */
protected $headerRow;

/** @var string */
Expand Down Expand Up @@ -166,7 +166,7 @@ public function setEscape($escape)

/**
* Get filename as specified in constructor
* @return String
* @return string
*/
public function getFilename()
{
Expand All @@ -175,7 +175,7 @@ public function getFilename()

/**
* Set filename for parsing
* @param String $filename
* @param string $filename
*/
protected function setFilename($filename)
{
Expand All @@ -184,7 +184,7 @@ protected function setFilename($filename)

/**
* Get array of RecordObject representing lines in the file
* @return Array
* @return array
*/
public function getRecords()
{
Expand All @@ -204,6 +204,7 @@ private function loadFilePointer(){
$fp = fopen($this->getFilename(), 'r');
$this->setFilePointer($fp);
}

/**
* @return null
*/
Expand Down