public function getSplFileObject(): \SplFileObject
    {
        $this->assertExists();
        if (null !== $this->splFileObject && $this->path === $this->splFileObject->getRealPath()) {
            return $this->splFileObject;
        }
        $this->splFileObject = new \SplFileObject($this->path);

        return $this->splFileObject;
    }