File manager - Edit - /var/www/payraty/helpdesk/vendor/pda/pheanstalk/src/Values/Timeout.php
Back
<?php declare(strict_types=1); namespace Pheanstalk\Values; final class Timeout { public function __construct(public readonly int $seconds, public readonly int $microSeconds = 0) { } /** * @return array{sec: int, usec: int} Array for usage in socket functions */ public function toArray(): array { return [ 'sec' => $this->seconds, 'usec' => $this->microSeconds ]; } public function toFloat(): float { return $this->seconds + ($this->microSeconds / 1000000); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings