Expand API for journal links.

This commit is contained in:
James Cole
2018-06-28 17:02:13 +02:00
parent f55d4e32c0
commit 7749fb1a0b
13 changed files with 707 additions and 17 deletions

View File

@@ -22,12 +22,21 @@ declare(strict_types=1);
namespace FireflyIII\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* @property int $journalCount
* @property int $journalCount
* @property string $inward
* @property string $outward
* @property string $name
* @property bool $editable
* @property Carbon $created_at
* @property Carbon $updated_at
* @property int $id
* Class LinkType
*
*/
class LinkType extends Model
{

View File

@@ -24,6 +24,7 @@ namespace FireflyIII\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Note.
@@ -36,6 +37,7 @@ use Illuminate\Database\Eloquent\Model;
*/
class Note extends Model
{
use SoftDeletes;
/**
* The attributes that should be casted to native types.
*

View File

@@ -22,6 +22,7 @@ declare(strict_types=1);
namespace FireflyIII\Models;
use Carbon\Carbon;
use Crypt;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -29,6 +30,17 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class TransactionJournalLink.
*
* @property int $id
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string $comment
* @property TransactionJournal $source
* @property TransactionJournal $destination
* @property LinkType $linkType
* @property int $link_type_id
* @property int $source_id
* @property int $destination_id
*/
class TransactionJournalLink extends Model
{