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