. */ namespace Irstea\PlantUmlBundle\Model\Filter; use ReflectionClass; /** * Description of DirectoryFilter. */ class ClassFilter extends AbstractListFilter { /** * @var string */ public const CONF_TYPE = 'classes'; /** * {@inheritDoc} */ protected function extract(ReflectionClass $class): string { return $class->getName(); } /** * {@inheritDoc} */ protected function matches($tested, $reference): bool { return $tested === $reference; } /** * {@inheritDoc} */ protected function normalize($className): string { return trim($className, '\\'); } }