mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-14 23:08:40 +00:00
Use global namespace+minor fixes
This commit is contained in:
parent
0ff2ebacb5
commit
d0ec244f5e
|
|
@ -103,6 +103,9 @@ class QAAnswer implements \JsonSerializable
|
||||||
return $this->createdAt;
|
return $this->createdAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function jsonSerialize() : array
|
public function jsonSerialize() : array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@ class QACategory implements \JsonSerializable
|
||||||
$this->parent = $parent;
|
$this->parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function jsonSerialize() : array
|
public function jsonSerialize() : array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,9 @@ class QAQuestion implements \JsonSerializable
|
||||||
$this->answers[] = $answer;
|
$this->answers[] = $answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function jsonSerialize() : array
|
public function jsonSerialize() : array
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,11 @@ final class QAQuestionMapper extends DataMapperAbstract
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, null|string>>
|
* @var array<string, array<string, null|string>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
*/ /**
|
||||||
|
* Has many relation.
|
||||||
|
*
|
||||||
|
* @var array<string, array<string, string>>
|
||||||
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $hasMany = [
|
protected static $hasMany = [
|
||||||
'answers' => [
|
'answers' => [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user