ExpenseCategory
in package
implements
DataModel
Expense Categories are used to group expenses together to aid in expense tracking.
Tags
Table of Contents
Interfaces
Constants
- RESPONSE_FIELD : mixed = 'category'
Properties
- $category : string
- $categoryId : int
- $createdAt : DateTimeImmutable
- $id : int
- $isCogs : bool
- $isEditable : bool
- $parentId : int
- $transactionPosted : bool
- $updatedAt : DateTimeImmutable
- $visState : int
Methods
- __construct() : mixed
- getContent() : array<string|int, mixed>
- Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.
Constants
RESPONSE_FIELD
public
mixed
RESPONSE_FIELD
= 'category'
Properties
$category
public
string
$category
Name for this category, e.g. “Advertising”
$categoryId
public
int
$categoryId
Duplicate of id
$createdAt
public
DateTimeImmutable
$createdAt
= null
The time of category creation.
$id
public
int
$id
The unique identifier of this expense category within this business.
$isCogs
public
bool
$isCogs
Represents cost of goods sold
$isEditable
public
bool
$isEditable
Can this category be edited
$parentId
public
int
$parentId
Category id of parent category
$transactionPosted
public
bool
$transactionPosted
$updatedAt
public
DateTimeImmutable
$updatedAt
= null
The time of last modification.
$visState
public
int
$visState
The visibility state: active, deleted, or archived
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getContent()
Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.
public
getContent() : array<string|int, mixed>