Documentation

ContextStack
in package

FinalYes

Table of Contents

Properties

$elements  : array<string|int, Element|File|PropertyHook>
$project  : Project
$typeContext  : Context|null

Methods

__construct()  : mixed
getProject()  : Project
getTypeContext()  : Context|null
peek()  : Element|File|PropertyHook
push()  : self
search()  : Element|File|PropertyHook|null
Returns the first element of type.
withTypeContext()  : ContextStack
createFromSelf()  : self

Properties

Methods

Returns the first element of type.

public search(class-string $type) : Element|File|PropertyHook|null

Will reverse search the stack for an element matching $type. Will return null when the element type is not in the current stack.

Parameters
$type : class-string
Return values
Element|File|PropertyHook|null

        
On this page

Search results