Fixing json serialization and reporter

This commit is contained in:
Dennis Eichhorn 2017-01-22 21:08:46 +01:00
parent 4ae2510846
commit 2599e9adfb
3 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@ class Department
*/
public function __toString()
{
return $this->jsonSerialize();
return json_encode($this->toArray());
}
/**
@ -117,6 +117,6 @@ class Department
*/
public function jsonSerialize()
{
return json_encode($this->toArray());
return $this->toArray();
}
}

View File

@ -93,7 +93,7 @@ class Position implements ArrayableInterface, \JsonSerializable
*/
public function __toString()
{
return $this->jsonSerialize();
return json_encode($this->toArray());
}
/**
@ -106,6 +106,6 @@ class Position implements ArrayableInterface, \JsonSerializable
*/
public function jsonSerialize()
{
return json_encode($this->toArray());
return $this->toArray();
}
}

View File

@ -93,7 +93,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
*/
public function __toString()
{
return $this->jsonSerialize();
return json_encode($this->toArray());
}
/**
@ -106,6 +106,6 @@ class Unit implements ArrayableInterface, \JsonSerializable
*/
public function jsonSerialize()
{
return json_encode($this->toArray());
return $this->toArray();
}
}