Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace AqwSocketClient\Interfaces;
6
7/**
8 * Represents a raw, **uninterpreted message** received directly from the
9 * AQW server socket.
10 */
11interface MessageInterface
12{
13    /**
14     * Attempts to create a MessageInterface object from a raw string.
15     *
16     * @param string $message The raw string data received from the socket.
17     * @return self|false The newly created message object, or **false** on failure or not specified how to create
18     */
19    public static function from(string $message): self|false;
20}