mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
38 lines
602 B
PHP
38 lines
602 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers\Csv\PostProcessing;
|
|
|
|
/**
|
|
* Class Bill
|
|
*
|
|
* @package FireflyIII\Helpers\Csv\PostProcessing
|
|
*/
|
|
class Bill implements PostProcessorInterface
|
|
{
|
|
|
|
/** @var array */
|
|
protected $data;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function process()
|
|
{
|
|
|
|
// get bill id.
|
|
if (!is_null($this->data['bill'])) {
|
|
$this->data['bill-id'] = $this->data['bill']->id;
|
|
}
|
|
|
|
return $this->data;
|
|
}
|
|
|
|
/**
|
|
* @param array $data
|
|
*/
|
|
public function setData(array $data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
}
|