mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-29 07:48:41 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() : array
|
||||
{
|
||||
return [];
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ class QACategory implements \JsonSerializable
|
|||
$this->parent = $parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() : array
|
||||
{
|
||||
return [];
|
||||
|
|
|
|||
|
|
@ -161,6 +161,9 @@ class QAQuestion implements \JsonSerializable
|
|||
$this->answers[] = $answer;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() : array
|
||||
{
|
||||
return [];
|
||||
|
|
|
|||
|
|
@ -50,6 +50,11 @@ final class QAQuestionMapper extends DataMapperAbstract
|
|||
*
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/ /**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
'answers' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user