for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrainExe\Core\Traits;
/**
* @api
*/
trait JsonSerializableTrait
{
* @return array
public function jsonSerialize() : array
$data = [];
foreach ($this as $key => $value) {
$this
this<BrainExe\Core\Traits\JsonSerializableTrait>
$data[$key] = $value;
}
return $data;