Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <nick@popphp.org>
8 * @copyright  Copyright (c) 2009-2026 Nick Sagona, III
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Pdf\Build;
16
17use Pop\Pdf\Document\AbstractDocument;
18
19/**
20 * Parser interface
21 *
22 * @category   Pop
23 * @package    Pop\Pdf
24 * @author     Nick Sagona, III <nick@popphp.org>
25 * @copyright  Copyright (c) 2009-2026 Nick Sagona, III
26 * @license    https://www.popphp.org/license     New BSD License
27 * @version    6.0.0
28 */
29interface ParserInterface
30{
31
32    /**
33     * Get the file
34     *
35     * @return string
36     */
37    public function getFile(): string;
38
39    /**
40     * Get the data stream
41     *
42     * @return string
43     */
44    public function getData(): string;
45
46    /**
47     * Parse the pdf data
48     *
49     * @param  mixed  $pages
50     * @return AbstractDocument
51     */
52    public function parse(mixed $pages = null): AbstractDocument;
53
54}