SummarizedReport
class \
- Extends
- Report
Internal
Table of Contents
Properties
- $changed : DateTimeImmutable
- $created : DateTimeImmutable
- $details : ReportDetails
- $meta : array
- $requestTime : int
- $scope : Scope
- $status : ReportStatus
- $summary : string
- $uuid : UuidV4
- $attributes : array<int, ReportAttribute>
- $count : int
- $mutationHashes : array<int, string>
Methods
- __construct() : mixed
- fromArray() : static
- jsonSerialize() : array
- toArray() : array
- withAttribute() : self
- withCount() : self
- withMutationHashes() : self
Properties
$changed read-only
public
DateTimeImmutable
$changed
$created read-only
public
DateTimeImmutable
$created
$details read-only
public
ReportDetails
$details
$meta read-only
public
array
$meta
$requestTime read-only
public
int
$requestTime
$scope read-only
public
Scope
$scope
$status read-only
public
ReportStatus
$status
$summary read-only
public
string
$summary
= ''
$uuid read-only
public
UuidV4
$uuid
$attributes
protected
array<int, ReportAttribute>
$attributes
= []
$count
protected
int
$count
= 0
$mutationHashes
protected
array<int, string>
$mutationHashes
= []
Methods
__construct()
public
final __construct(Scope $scope, ReportStatus $status, int $requestTime, array $meta, ReportDetails $details[, string $summary = '' ][, UuidV4|null $uuid = null ][, DateTimeImmutable|null $created = null ][, DateTimeImmutable|null $changed = null ]) : mixed
Parameters
- $scope : Scope
- $status : ReportStatus
- $requestTime : int
- $meta : array
- $details : ReportDetails
- $summary : string = ''
- $uuid : UuidV4|null = null
- $created : DateTimeImmutable|null = null
- $changed : DateTimeImmutable|null = null
fromArray()
public
static fromArray(array $array) : static
Parameters
- $array : array
Return values
staticjsonSerialize()
public
jsonSerialize() : array
Return values
arraytoArray()
public
toArray() : array
Return values
arraywithAttribute()
public
withAttribute(ReportAttribute $attribute) : self
Parameters
- $attribute : ReportAttribute
Return values
selfwithCount()
public
withCount(int $count) : self
Parameters
- $count : int
Return values
selfwithMutationHashes()
public
withMutationHashes(string ...$mutationHashes) : self
Parameters
- $mutationHashes : string