for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSemVerChecker\Operation;
use PhpParser\Node\Stmt\Class_;
use PHPSemVerChecker\Node\Statement\Class_ as PClass;
class ClassRemoved extends Operation {
/**
* @var string
*/
protected $code = 'V005';
protected $reason = 'Class was removed.';
* @var
protected $fileBefore;
* @var \PhpParser\Node\Stmt\Class_
protected $classBefore;
* @param string $fileBefore
* @param \PhpParser\Node\Stmt\Class_ $classBefore
public function __construct($fileBefore, Class_ $classBefore)
{
$this->fileBefore = $fileBefore;
$this->classBefore = $classBefore;
}
* @return string
public function getLocation()
return $this->fileBefore;
public function getLine()
return $this->classBefore->getLine();
public function getTarget()
return PClass::getFullyQualifiedName($this->classBefore);