for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Patsura Dmitry https://github.com/ovr <[email protected]>
*/
namespace PHPSA\Definition;
use PHPSA\Context;
use PHPSA\ScopePointer;
* Shared Definition properties and methods
abstract class AbstractDefinition
{
* @var string
protected $name;
* Compile the definition
*
* @param Context $context
* @return boolean
abstract public function compile(Context $context);
* @var bool
protected $compiled = false;
* @return string
public function getName()
return $this->name;
}
* @return ScopePointer
public function getPointer()
return new ScopePointer($this);
public function isCompiled()
return $this->compiled;
* @param string $name
public function setName($name)
$this->name = $name;