PHP Class chobie\Jira\Issues\Walker

Inheritance: implements Iterator
Afficher le fichier Open project: chobie/jira-api-restclient Class Usage Examples

Protected Properties

Свойство Type Description
$api chobie\Jira\Api API.
$callback callable Callback.
$current integer Current record index.
$executed boolean Was JQL executed.
$fields string | array | null List of fields to query.
$issues array Result.
$jql string JQL.
$max integer Issue count on current page.
$offset integer Offset.
$perPage integer Issues per page.
$startAt integer Index of issue in issue list (across all issue pages).
$total integer Total issue count.

Méthodes publiques

Méthode Description
__construct ( Api $api, integer | null $per_page = null ) Creates walker instance.
count ( ) : integer Count elements of an object.
current ( ) : mixed Return the current element.
key ( ) : mixed Return the key of the current element.
next ( ) : void Move forward to next element.
push ( string $jql, string | array | null $fields = null ) : void Pushes JQL.
rewind ( ) : void Rewind the Iterator to the first element.
setDelegate ( callable $callable ) : void Sets callable.
valid ( ) : boolean Checks if current position is valid.

Méthodes protégées

Méthode Description
getQuery ( ) : string Returns JQL.
setResult ( Result $result ) : void Sets result.

Method Details

__construct() public méthode

Creates walker instance.
public __construct ( Api $api, integer | null $per_page = null )
$api chobie\Jira\Api API.
$per_page integer | null Per page.

count() public méthode

Count elements of an object.
public count ( ) : integer
Résultat integer The custom count as an integer.

current() public méthode

Return the current element.
public current ( ) : mixed
Résultat mixed Can return any type.

getQuery() protected méthode

Returns JQL.
protected getQuery ( ) : string
Résultat string

key() public méthode

Return the key of the current element.
public key ( ) : mixed
Résultat mixed scalar on success, or null on failure.

next() public méthode

Move forward to next element.
public next ( ) : void
Résultat void Any returned value is ignored.

push() public méthode

Pushes JQL.
public push ( string $jql, string | array | null $fields = null ) : void
$jql string JQL.
$fields string | array | null Fields.
Résultat void

rewind() public méthode

Rewind the Iterator to the first element.
public rewind ( ) : void
Résultat void Any returned value is ignored.

setDelegate() public méthode

Sets callable.
public setDelegate ( callable $callable ) : void
$callable callable Callable.
Résultat void

setResult() protected méthode

Sets result.
protected setResult ( Result $result ) : void
$result chobie\Jira\Api\Result Result.
Résultat void

valid() public méthode

Checks if current position is valid.
public valid ( ) : boolean
Résultat boolean The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

Property Details

$api protected_oe property

API.
protected Api,chobie\Jira $api
Résultat chobie\Jira\Api

$callback protected_oe property

Callback.
protected callable $callback
Résultat callable

$current protected_oe property

Current record index.
protected int $current
Résultat integer

$executed protected_oe property

Was JQL executed.
protected bool $executed
Résultat boolean

$fields protected_oe property

List of fields to query.
protected string|array|null $fields
Résultat string | array | null

$issues protected_oe property

Result.
protected array $issues
Résultat array

$jql protected_oe property

JQL.
protected string $jql
Résultat string

$max protected_oe property

Issue count on current page.
protected int $max
Résultat integer

$offset protected_oe property

Offset.
protected int $offset
Résultat integer

$perPage protected_oe property

Issues per page.
protected int $perPage
Résultat integer

$startAt protected_oe property

Index of issue in issue list (across all issue pages).
protected int $startAt
Résultat integer

$total protected_oe property

Total issue count.
protected int $total
Résultat integer