for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Bigwhoop\Trumpet\CodeParsing\Php;
trait FullyQualifiedNameTrait
{
private $name = '';
public function getFullName(): string
return $this->name;
}
public function getShortName(): string
$chunks = explode('\\', $this->name);
return array_pop($chunks);
public function getNamespace(): string
array_pop($chunks);
return implode('\\', $chunks);