Source of file JsonSerialize.php
Size: 0,566 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Common/Container/JsonSerialize.php
12345678910111213141516171819202122232425262728293031323334 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Common\Container; /** * Container implements JsonSerializable interface * * @package Bluz\Common * @author Anton Shevchuk * @see JsonSerializable * * @method array toArray() */ trait JsonSerialize { /** * Specify data which should be serialized to JSON * * @return array */ public function jsonSerialize() { return $this->toArray(); } } |