mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-02-06 00:18:41 +00:00
add tests
This commit is contained in:
parent
7dcd5f41e5
commit
bbf2bd6697
|
|
@ -288,12 +288,13 @@ class Report implements \JsonSerializable
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
'createdAt' => $this->createdAt,
|
'createdAt' => $this->createdAt,
|
||||||
'name' => $this->title,
|
'name' => $this->title,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'descriptionRaw' => $this->descriptionRaw,
|
||||||
|
'status' => $this->status,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -382,14 +382,15 @@ class Template implements \JsonSerializable
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
'createdAt' => $this->createdAt,
|
'createdAt' => $this->createdAt,
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'descriptionRaw' => $this->descriptionRaw,
|
||||||
'datatype' => $this->datatype,
|
'status' => $this->status,
|
||||||
'standalone' => $this->isStandalone,
|
'datatype' => $this->datatype,
|
||||||
|
'standalone' => $this->isStandalone,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user