for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSemVerChecker\Operation;
use PhpParser\Node\Stmt\Function_;
use PHPSemVerChecker\Node\Statement\Function_ as PFunction;
abstract class FunctionOperationUnary extends Operation
{
/**
* @var string
*/
protected $file;
* @var \PhpParser\Node\Stmt\Function_
protected $function;
* @param string $file
* @param \PhpParser\Node\Stmt\Function_ $function
public function __construct($file, Function_ $function)
$this->file = $file;
$this->function = $function;
}
* @return string
public function getLocation()
return $this->file;
* @return int
public function getLine()
return $this->function->getLine();
public function getTarget()
return PFunction::getFullyQualifiedName($this->function);