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\Normalisers;
use DraperStudio\Payload\Contracts\Normaliser;
use DraperStudio\Payload\Readers\YamlReader;
use DraperStudio\Payload\Serialisers\YamlInlineSerialiser;
use DraperStudio\Payload\Unserialisers\YamlUnserialiser;
use DraperStudio\Payload\Writers\YamlInlineWriter;
/**
* Class YamlInlineNormaliser.
class YamlInlineNormaliser implements Normaliser
{
* @var
protected $serialiser;
protected $unserialiser;
protected $writer;
protected $reader;
* @return YamlInlineSerialiser
public function serialiser()
if ($this->serialiser) {
return $this->serialiser;
}
return $this->serialiser = new YamlInlineSerialiser();
* @return YamlUnserialiser
public function unserialiser()
if ($this->unserialiser) {
return $this->unserialiser;
return $this->unserialiser = new YamlUnserialiser();
* @return YamlInlineWriter
public function writer()
if ($this->writer) {
return $this->writer;
return $this->writer = new YamlInlineWriter();
* @return YamlReader
public function reader()
if ($this->reader) {
return $this->reader;
return $this->reader = new YamlReader();