for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GraphQLTests\Doctrine\AttributeBlog\Model\Special;
use Doctrine\ORM\Mapping as ORM;
use GraphQL\Doctrine\Annotation as API;
use GraphQLTests\Doctrine\AttributeBlog\Model\AbstractModel;
#[ORM\Entity]
final class IgnoredGetter extends AbstractModel
{
private string $privateProperty = 'privateProperty';
$privateProperty
protected $protectedProperty = 'protectedProperty';
public $publicProperty = 'publicProperty';
private function getPrivate(): string
getPrivate()
This check looks for private methods that have been defined, but are not used inside the class.
return __FUNCTION__;
}
protected function getProtected(): string
public function getPublic(): string
/**
* @param string[] $arg3
*/
#[API\Field(type: 'string[]')]
public function getPublicWithArgs(string $arg1, int $arg2, array $arg3 = ['foo']): array
return [$arg1, $arg2, $arg3];
public function __call($name, $arguments): string
public static function getStaticPublic(): string
public function isValid(): bool
return true;
public function hasMoney(): bool