PageCollectionTrait
-
template
-
Table of Contents
Properties
-
$pages
: Collection<int, TPage>
Methods
-
addPage()
: $this
-
getPage()
: TPage|null
-
getPages()
: Collection<int, TPage>
-
pageCollectionInit()
: void
-
removePage()
: $this
-
setPages()
: $this
$pages
protected
Collection<int, TPage>
$pages
addPage()
public
addPage(TPage $page) : $this
Parameters
-
$page
: TPage
-
getPage()
public
getPage(int $pageId) : TPage|null
Parameters
-
$pageId
: int
-
getPages()
public
getPages() : Collection<int, TPage>
Return values
Collection<int, TPage>
pageCollectionInit()
public
pageCollectionInit() : void
removePage()
public
removePage(TPage $page) : $this
Parameters
-
$page
: TPage
-
setPages()
public
setPages(Collection<int, TPage>|array<int, TPage> $pages) : $this
Parameters
-
$pages
: Collection<int, TPage>|array<int, TPage>
-