src/Utility/DomainEntityBuilder.php
private function makeReflection()
    {
        if (!class_exists($this->getOriginalClassName())) {
            throw new InvalidArgumentException('Class name ' . $this->getOriginalClassName() . ' not exists');
        }

        $this->reflection = new ReflectionClass($this->getOriginalClassName());
    }
private function makeReflection()
    {
        if (!class_exists($this->getOriginalClassName())) {
            throw new InvalidArgumentException('Class name ' . $this->getOriginalClassName() . ' not exists');
        }

        $this->reflection = new ReflectionClass($this->getOriginalClassName());
    }
Create reflection based on class name
@throws InvalidArgumentException