PingInterval
    
            
            in package
            
        
    
            
            implements
                            LoggerAwareInterface,                             ProcessOutgoingInterface,                             ProcessTickInterface,                             Stringable                    
    
            
            uses
                            LoggerAwareTrait,                             StringableTrait                    
    
WebSocket\Middleware\PingInterval class.
Handles close procedure.
Table of Contents
Interfaces
- LoggerAwareInterface
- Describes a logger-aware instance.
- ProcessOutgoingInterface
- WebSocket\Middleware\ProcessOutgoingInterface interface.
- ProcessTickInterface
- WebSocket\Middleware\ProcessTickInterface interface.
- Stringable
Properties
- $logger : LoggerInterface|null
- The logger instance.
- $interval : int|null
Methods
- __construct() : mixed
- __toString() : string
- processOutgoing() : Message
- processTick() : void
- setLogger() : void
- Sets a logger.
- stringable() : string
- getNext() : int
- setNext() : int
Properties
$logger
The logger instance.
    protected
        LoggerInterface|null
    $logger
     = null
    
    
    
$interval
    private
        int|null
    $interval
    
    
    
    
Methods
__construct()
    public
                    __construct([int|null $interval = null ]) : mixed
    Parameters
- $interval : int|null = null
__toString()
    public
                    __toString() : string
    Return values
stringprocessOutgoing()
    public
                    processOutgoing(ProcessStack $stack, Connection $connection, Message $message) : Message
    Parameters
- $stack : ProcessStack
- $connection : Connection
- $message : Message
Return values
MessageprocessTick()
    public
                    processTick(ProcessTickStack $stack, Connection $connection) : void
    Parameters
- $stack : ProcessTickStack
- $connection : Connection
setLogger()
Sets a logger.
    public
                    setLogger(LoggerInterface $logger) : void
    Parameters
- $logger : LoggerInterface
stringable()
    protected
                    stringable(string $format, mixed ...$values) : string
    Parameters
- $format : string
- $values : mixed
Return values
stringgetNext()
    private
                    getNext(Connection $connection) : int
    Parameters
- $connection : Connection
Return values
intsetNext()
    private
                    setNext(Connection $connection) : int
    Parameters
- $connection : Connection