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\Parser;
16
17/**
18 * Parser interface
19 *
20 * @category   Pop
21 * @package    Pop\Parser
22 * @author     Nick Sagona, III <nick@popphp.org>
23 * @copyright  Copyright (c) 2009-2026 Nick Sagona, III
24 * @license    https://www.popphp.org/license     New BSD License
25 * @version    1.0.0
26 */
27interface ParserInterface
28{
29
30    /**
31     * Parse method
32     *
33     * @return static
34     */
35    public function parse(): static;
36
37    /**
38     * Get data
39     *
40     * @return mixed
41     */
42    public function getData(): mixed;
43
44    /**
45     * Set data
46     *
47     * @param  mixed $data
48     * @return static
49     */
50    public function setData(mixed $data): static;
51
52    /**
53     * Get parsed result
54     *
55     * @return mixed
56     */
57    public function getResult(): mixed;
58
59    /**
60     * Check if there is an error
61     *
62     * @return bool
63     */
64    public function hasError(): bool;
65
66    /**
67     * Get error message
68     *
69     * @return ?string
70     */
71    public function getErrorMessage(): ?string;
72
73}