whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Result
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Result/Stats.php
<?php declare(strict_types=1); namespace Psl\Result; /** * @psalm-immutable */ final class Stats { private int $total = 0; private int $succeeded = 0; private int $failed = 0; public function apply(ResultInterface $result): self { $new = new self(); $new->total = $this->total + 1; $new->succeeded = $result->isSucceeded() ? $this->succeeded + 1 : $this->succeeded; $new->failed = $result->isFailed() ? $this->failed + 1 : $this->failed; return $new; } public function total(): int { return $this->total; } public function succeeded(): int { return $this->succeeded; } public function failed(): int { return $this->failed; } }
Copyright ©2021 || Defacer Indonesia