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
selffindAll()
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>findOne()
public
findOne(Node $node) : Node|null
Parameters
- $node : Node
Return values
Node|nullhasChild()
public
static hasChild([callable|null $condition = null ]) : callable(Node): bool
Parameters
- $condition : callable|null = null
Tags
Return values
callable(Node): boolhasParent()
public
static hasParent([callable|null $condition = null ]) : callable(Node): bool
Parameters
- $condition : callable|null = null
Tags
Return values
callable(Node): boolorWhere()
public
orWhere(callable ...$conditions) : self
Parameters
- $conditions : callable
Return values
selftype()
public
static type(string $class) : callable(Node): bool
Parameters
- $class : string
Return values
callable(Node): boolwhere()
public
where(callable ...$conditions) : self
Parameters
- $conditions : callable