for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Roave\BackwardCompatibility\Formatter;
use Roave\BetterReflection\Reflection\ReflectionProperty;
final class ReflectionPropertyName
{
public function __invoke(ReflectionProperty $property) : string
if ($property->isStatic()) {
return $property->getDeclaringClass()->getName() . '::$' . $property->getName();
}
return $property->getDeclaringClass()->getName() . '#$' . $property->getName();