for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 11/21/15
* Time: 4:46 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Serializer\Drivers\Eloquent;
* Class EloquentDriver.
class EloquentDriver
{
* @var Driver
private static $driver;
* @param $value
* @return mixed|string
public static function serialize($value)
if (empty(self::$driver)) {
self::$driver = new Driver();
}
return self::$driver->serialize($value);