Documentation

Query
in package

FinalYes

Table of Contents

Properties

$condition  : callable(Node): bool

Methods

__construct()  : mixed
andWhere()  : self
findAll()  : iterable<string|int, Node>
findOne()  : Node|null
hasChild()  : callable(Node): bool
hasParent()  : callable(Node): bool
orWhere()  : self
type()  : callable(Node): bool
where()  : self

Properties

$condition

private callable(Node): bool $condition

Methods

__construct()

public __construct() : mixed

andWhere()

public andWhere(callable ...$conditions) : self
Parameters
$conditions : callable
Return values
self

findAll()

public findAll(Node $node[, int|null $limit = PHP_INT_MAX ]) : iterable<string|int, Node>
Parameters
$node : Node
$limit : int|null = PHP_INT_MAX
Return values
iterable<string|int, Node>

hasChild()

public static hasChild([callable|null $condition = null ]) : callable(Node): bool
Parameters
$condition : callable|null = null
Tags
psalm-param

?callable(Node): bool $condition

Return values
callable(Node): bool

hasParent()

public static hasParent([callable|null $condition = null ]) : callable(Node): bool
Parameters
$condition : callable|null = null
Tags
psalm-param

?callable(Node): bool $condition

Return values
callable(Node): bool

orWhere()

public orWhere(callable ...$conditions) : self
Parameters
$conditions : callable
Return values
self

type()

public static type(string $class) : callable(Node): bool
Parameters
$class : string
Return values
callable(Node): bool

where()

public where(callable ...$conditions) : self
Parameters
$conditions : callable
Return values
self

        
On this page

Search results