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;
use DraperStudio\Payload\Normalisers\YamlInlineNormaliser;
/**
* Class YamlInline.
class YamlInline
{
* @var YamlInlineNormaliser
protected $normaliser;
* YamlInline constructor.
public function __construct()
$this->normaliser = new YamlInlineNormaliser();
}
* @param $input
* @return mixed|string
public function serialise($input)
return $this->normaliser->serialiser()->serialise($input);
* @param null $class
* @return mixed
public function unserialise($input, $class = null)
return $this->normaliser->unserialiser()->unserialise($input, $class);
* @param $path
* @return bool|mixed
public function write($path, $input)
return $this->normaliser->writer()->write($path, $input);
public function read($path, $class = null)
return $this->normaliser->reader()->read($path, $class);