for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Stitcher\Variable;
abstract class AbstractVariable
{
protected $unparsed;
protected $parsed;
abstract public function parse(): AbstractVariable;
public function __construct($unparsed)
$this->unparsed = $unparsed;
}
/**
* @return mixed
*/
public function getUnparsed()
return $this->unparsed;
public function getParsed()
if (! $this->parsed) {
$this->parse();
return $this->parsed;