for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Payload.
*
* (c) DraperStudio <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DraperStudio\Payload\Writers;
use DraperStudio\Payload\Serialisers\ArraySerialiser;
/**
* Class ArrayWriter.
class ArrayWriter extends Writer
{
* @param $path
* @param $input
* @return bool
public function write($path, $input)
$contents = (new ArraySerialiser())->serialise($input);
return $this->put($path, "<?php
return $contents;");
}