firefly-iii/app/Helpers/Csv/Converter/BasicConverter.php

123 lines
1.8 KiB
PHP
Raw Normal View History

2015-07-04 23:18:02 -05:00
<?php
namespace FireflyIII\Helpers\Csv\Converter;
/**
* Class BasicConverter
*
* @package FireflyIII\Helpers\Csv\Converter
*/
class BasicConverter
{
/** @var array */
protected $data;
2015-07-04 23:26:34 -05:00
/** @var string */
protected $field;
/** @var int */
2015-07-04 23:18:02 -05:00
protected $index;
/** @var array */
protected $mapped;
2015-07-04 23:26:34 -05:00
/** @var string */
2015-07-04 23:18:02 -05:00
protected $role;
2015-07-04 23:26:34 -05:00
/** @var string */
2015-07-04 23:18:02 -05:00
protected $value;
/**
* @return array
*/
public function getData()
{
return $this->data;
}
/**
* @param array $data
*/
2015-07-04 23:26:34 -05:00
public function setData(array $data)
2015-07-04 23:18:02 -05:00
{
$this->data = $data;
}
/**
2015-07-04 23:26:34 -05:00
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* @param string $field
*/
public function setField($field)
{
$this->field = $field;
}
/**
* @return int
2015-07-04 23:18:02 -05:00
*/
public function getIndex()
{
return $this->index;
}
/**
2015-07-04 23:26:34 -05:00
* @param int $index
2015-07-04 23:18:02 -05:00
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return array
*/
public function getMapped()
{
return $this->mapped;
}
/**
* @param array $mapped
*/
public function setMapped($mapped)
{
$this->mapped = $mapped;
}
/**
2015-07-04 23:26:34 -05:00
* @return string
2015-07-04 23:18:02 -05:00
*/
public function getRole()
{
return $this->role;
}
/**
2015-07-04 23:26:34 -05:00
* @param string $role
2015-07-04 23:18:02 -05:00
*/
public function setRole($role)
{
$this->role = $role;
}
/**
2015-07-04 23:26:34 -05:00
* @return string
2015-07-04 23:18:02 -05:00
*/
public function getValue()
{
return $this->value;
}
/**
2015-07-04 23:26:34 -05:00
* @param string $value
2015-07-04 23:18:02 -05:00
*/
public function setValue($value)
{
$this->value = $value;
}
2015-07-09 14:26:40 -05:00
}