table test and bug style fixes

This commit is contained in:
Dennis Eichhorn 2019-03-31 20:32:17 +02:00
parent 63903a9d78
commit bbb90428fc
3 changed files with 13 additions and 8 deletions

View File

@ -27,5 +27,5 @@ use phpOMS\Stdlib\Base\Enum;
abstract class HelperStatus extends Enum abstract class HelperStatus extends Enum
{ {
public const INACTIVE = 0; public const INACTIVE = 0;
public const ACTIVE = 1; public const ACTIVE = 1;
} }

View File

@ -92,7 +92,7 @@ class Report implements \JsonSerializable
/** /**
* Report source. * Report source.
* *
* @var int * @var int|\Modules\Media\Models\Collection
* @since 1.0.0 * @since 1.0.0
*/ */
private $source = 0; private $source = 0;
@ -281,15 +281,20 @@ class Report implements \JsonSerializable
return $this->source; return $this->source;
} }
/**
* @return array
*
* @since 1.0.0
*/
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->format('Y-m-d H:i:s'), 'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
'name' => $this->title, 'name' => $this->title,
'description' => $this->description, 'description' => $this->description,
'status' => $this->status, 'status' => $this->status,
]; ];
} }

View File

@ -27,5 +27,5 @@ use phpOMS\Views\View;
class HelperView extends View class HelperView extends View
{ {
protected $dataSets = []; protected $dataSets = [];
protected $dataSet = null; protected $dataSet = null;
} }