protected function entityImplements(string $interfaceName): bool
    {
        $reflectionClass = new \ReflectionClass($this->getEntityClassName());

        return $reflectionClass->implementsInterface($interfaceName);
    }