NewsListParser
in package
implements
ParserInterface
Class NewsListParser
Table of Contents
Interfaces
- ParserInterface
- Interface ParserInterface
Properties
- $crawler : Crawler
Methods
- __construct() : mixed
- NewsListParser constructor.
- getHasNextPage() : bool
- getLastVisiblePage() : int
- getModel() : NewsList
- Return the model
- getResults() : array<string|int, mixed>
Properties
$crawler
private
Crawler
$crawler
Methods
__construct()
NewsListParser constructor.
public
__construct(Crawler $crawler) : mixed
Parameters
- $crawler : Crawler
getHasNextPage()
public
getHasNextPage() : bool
Return values
boolgetLastVisiblePage()
public
getLastVisiblePage() : int
Return values
intgetModel()
Return the model
public
getModel() : NewsList
Return values
NewsListgetResults()
public
getResults() : array<string|int, mixed>