about summary refs log tree commit diff stats
path: root/src/Item
diff options
context:
space:
mode:
authorAlan Pearce2015-04-05 15:59:26 +0100
committerAlan Pearce2015-04-05 15:59:26 +0100
commit115cc1a38c67606909bf3df1cc41d257fa8120ba (patch)
tree6a103de27c79ff7bee64b16d090c7a9940065b90 /src/Item
parentd06ed0b1f4cc014c72d338f3578326e10cc12212 (diff)
downloadynab-ledger-115cc1a38c67606909bf3df1cc41d257fa8120ba.tar.lz
ynab-ledger-115cc1a38c67606909bf3df1cc41d257fa8120ba.tar.zst
ynab-ledger-115cc1a38c67606909bf3df1cc41d257fa8120ba.zip
Convert: Implement YNAB file parsing
Diffstat (limited to 'src/Item')
-rw-r--r--src/Item/BudgetTransaction.php10
-rw-r--r--src/Item/RegisterTransaction.php15
2 files changed, 25 insertions, 0 deletions
diff --git a/src/Item/BudgetTransaction.php b/src/Item/BudgetTransaction.php
new file mode 100644
index 0000000..e4899f9
--- /dev/null
+++ b/src/Item/BudgetTransaction.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace YnabLedger\Item;
+
+class BudgetTransaction {
+    public $date;
+    public $category = [];
+    public $in;
+    public $out;
+}
diff --git a/src/Item/RegisterTransaction.php b/src/Item/RegisterTransaction.php
new file mode 100644
index 0000000..b676640
--- /dev/null
+++ b/src/Item/RegisterTransaction.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace YnabLedger\Item;
+
+class RegisterTransaction {
+    public $line;
+    public $account;
+    public $date;
+    public $payee;
+    public $category;
+    public $memo;
+    public $out;
+    public $in;
+    public $cleared = false;
+}