public function factory($data)
    {
        $content  = '';
        $file     = '';
        $parser   = $this->getParser();
        $filename = $this->getFilename($data);

        if ($filename) {
            $content  = $this->getFileContent($filename);
            $file     = new \SplFileInfo($filename);
        }

        return new Blog([
            'content' => $parser->text($content),
            'data'    => $file,
            'filename' => $filename,
        ]);
    }