private function readCsv($fullPath)
    {
        $result = [];
        $entries = $this->hlpCsv->read($fullPath);
        foreach ($entries as $one) {
            $i=0;
            $fromId = $one[$i++];
            $fromName = $one[$i++];
            $toId = $one[$i++];
            $toName = $one[$i++];
            $volume = $one[$i++];

            $item = new DItem();
            $item->from = $fromId;
            $item->to = $toId;
            $item->value = $volume;
            $result[] = $item;
        }
        return $result;
    }
private function readCsv($fullPath)
    {
        $result = [];
        $entries = $this->hlpCsv->read($fullPath);
        foreach ($entries as $one) {
            $i=0;
            $fromId = $one[$i++];
            $fromName = $one[$i++];
            $toId = $one[$i++];
            $toName = $one[$i++];
            $volume = $one[$i++];

            $item = new DItem();
            $item->from = $fromId;
            $item->to = $toId;
            $item->value = $volume;
            $result[] = $item;
        }
        return $result;
    }
private function readCsv ( $ fullPath ) { $ result = [ ] ; $ entries = $ this -> hlpCsv -> read ( $ fullPath ) ; foreach ( $ entries as $ one ) { $ i = 0 ; $ fromId = $ one [ $ i ++ ] ; $ fromName = $ one [ $ i ++ ] ; $ toId = $ one [ $ i ++ ] ; $ toName = $ one [ $ i ++ ] ; $ volume = $ one [ $ i ++ ] ; $ item = new DItem ( ) ; $ item -> from = $ fromId ; $ item -> to = $ toId ; $ item -> value = $ volume ; $ result [ ] = $ item ; } return $ result ; }
Read & parse CSV file.

@param string $fullPath
@return DItem[]
Read & parse CSV file .