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