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