- added some type-hints for primitive variables
Signed-off-by: Roland Häder <roland@mxchange.org>
* @param $columnSeparator Character to use separting columns
* @return $lineArray An indexed array with the read line
*/
* @param $columnSeparator Character to use separting columns
* @return $lineArray An indexed array with the read line
*/
- public function readCsvFileLine ($columnSeparator) {
+ public function readCsvFileLine (string $columnSeparator) {
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] columnSeparator=%s - CALLED!', __METHOD__, __LINE__, $columnSeparator));
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] columnSeparator=%s - CALLED!', __METHOD__, __LINE__, $columnSeparator));
* @param $columnSeparator Character to use separting columns
* @return $lineArray An indexed array with the read line
*/
* @param $columnSeparator Character to use separting columns
* @return $lineArray An indexed array with the read line
*/
- private function parseDataToIndexedArray ($data, $columnSeparator) {
+ private function parseDataToIndexedArray (string $data, string $columnSeparator) {
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] data()=%d,columnSeparator=%s - CALLED!', __METHOD__, __LINE__, strlen($data), $columnSeparator));
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] data()=%d,columnSeparator=%s - CALLED!', __METHOD__, __LINE__, strlen($data), $columnSeparator));
* @param $columnSeparator Character to use separting columns
* @return $lineArray An index array with the read line
*/
* @param $columnSeparator Character to use separting columns
* @return $lineArray An index array with the read line
*/
- function readCsvFileLine ($columnSeparator);
+ function readCsvFileLine (string $columnSeparator);