Documentation

AbstractParser
in package
implements ParserInterface

AbstractYes

Abstract parser class

Tags
category

Pop

author

Nick Sagona, III dev@noladev.com

copyright

Copyright (c) 2009-2027 NOLA Interactive, LLC.

license

https://www.popphp.org/license New BSD License

version
1.0.0

Table of Contents

Interfaces

ParserInterface
Parser interface

Properties

$data  : mixed
Data to parse
$error  : bool
Error flag
$errorMessage  : string|null
Error message
$result  : mixed
Parsed result

Methods

__construct()  : mixed
Constructor
getData()  : mixed
Get data
getErrorMessage()  : string|null
Get error message
getResult()  : mixed
Get parsed result
hasError()  : bool
Check if there is an error
parse()  : static
Parse method
setData()  : static
Set data

Properties

$errorMessage

Error message

protected string|null $errorMessage = null

Methods

__construct()

Constructor

public __construct([mixed $data = null ]) : mixed

Instantiate the parse object

Parameters
$data : mixed = null

getErrorMessage()

Get error message

public getErrorMessage() : string|null
Return values
string|null

hasError()

Check if there is an error

public hasError() : bool
Return values
bool

parse()

Parse method

public abstract parse() : static
Return values
static

setData()

Set data

public setData(mixed $data) : static
Parameters
$data : mixed
Return values
static

        
On this page

Search results